com.sun.management.snmp
Class SnmpOpaque

java.lang.Object
  extended bycom.sun.management.snmp.SnmpValue
      extended bycom.sun.management.snmp.SnmpString
          extended bycom.sun.management.snmp.SnmpOpaque
All Implemented Interfaces:
Cloneable, Serializable, SnmpDataTypeEnums

public class SnmpOpaque
extends SnmpString

Is used to represent an SNMP value. The Opaque type is defined in RFC 1155.

Since:
Java DMK 5.1
Version:
4.8 05/05/04
Author:
Sun Microsystems, Inc
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sun.management.snmp.SnmpString
value
 
Fields inherited from interface com.sun.management.snmp.SnmpDataTypeEnums
ApplFlag, BitStringTag, BooleanTag, Counter64Tag, CounterTag, CtxtFlag, errEndOfMibViewTag, errNoSuchInstanceTag, errNoSuchObjectTag, GaugeTag, IntegerTag, IpAddressTag, NsapTag, NullTag, ObjectIdentiferTag, OctetStringTag, OpaqueTag, SequenceTag, TableTag, TimeticksTag, UintegerTag, UnknownSyntaxTag
 
Constructor Summary
SnmpOpaque(byte[] v)
          Constructs a new SnmpOpaque from the specified bytes array.
SnmpOpaque(Byte[] v)
          Constructs a new SnmpOpaque with the specified Bytes array.
SnmpOpaque(String v)
          Constructs a new SnmpOpaque from the specified String value.
 
Method Summary
 String getTypeName()
          Returns a textual description of the type object.
 String toString()
          Converts the opaque to its String form, that is, a string of bytes expressed in hexadecimal form.
 
Methods inherited from class com.sun.management.snmp.SnmpString
appendToOid, BinToChar, byteValue, clone, duplicate, HexToChar, inetAddressValue, nextOid, toByte, toOid, toOid
 
Methods inherited from class com.sun.management.snmp.SnmpValue
isEndOfMibViewValue, isNoSuchInstanceValue, isNoSuchObjectValue, toAsn1String
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnmpOpaque

public SnmpOpaque(byte[] v)
Constructs a new SnmpOpaque from the specified bytes array.

Parameters:
v - The bytes composing the opaque value.

SnmpOpaque

public SnmpOpaque(Byte[] v)
Constructs a new SnmpOpaque with the specified Bytes array.

Parameters:
v - The Bytes composing the opaque value.

SnmpOpaque

public SnmpOpaque(String v)
Constructs a new SnmpOpaque from the specified String value.

Parameters:
v - The initialization value.
Method Detail

toString

public String toString()
Converts the opaque to its String form, that is, a string of bytes expressed in hexadecimal form.

Overrides:
toString in class SnmpString
Returns:
The String representation of the value.

getTypeName

public final String getTypeName()
Returns a textual description of the type object.

Overrides:
getTypeName in class SnmpString
Returns:
ASN.1 textual description.

FCS Release
jdmk-5_1-b34.1 2005.02.10_16:46:09_MET

Copyright 1998-2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.