com.sun.management.snmp
Class SnmpOpaque

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

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
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, ObjectIdentifierTag, 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.

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

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