com.sun.jaw.snmp.common
Class SnmpOpaque
java.lang.Object
|
+--com.sun.jaw.snmp.common.SnmpValue
|
+--com.sun.jaw.snmp.common.SnmpString
|
+--com.sun.jaw.snmp.common.SnmpOpaque
- public class SnmpOpaque
- extends SnmpString
The SnmpOpaque
class is used for representing an SNMP value.
The type Opaque
is defined in RFC 1155.
- See Also:
- Serialized Form
Constructor Summary |
SnmpOpaque(byte[] v)
Constructs a new SnmpOpaque from the specified bytes array. |
SnmpOpaque(java.lang.Byte[] v)
Constructs a new SnmpOpaque with the specified Bytes array. |
SnmpOpaque(java.lang.String v)
Constructs a new SnmpOpaque from the specified String value. |
Method Summary |
java.lang.String |
getTypeName()
Returns a textual description of the type object. |
java.lang.String |
toString()
Converts the opaque to its String form that is a string of
bytes expressed in hexadecimal form. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
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(java.lang.Byte[] v)
- Constructs a new
SnmpOpaque
with the specified Bytes
array.
- Parameters:
v
- The Bytes
composing the opaque value.
SnmpOpaque
public SnmpOpaque(java.lang.String v)
- Constructs a new
SnmpOpaque
from the specified String
value.
- Parameters:
v
- The initialization value.
toString
public java.lang.String toString()
- Converts the opaque to its
String
form that is a string of
bytes expressed in hexadecimal form.
- Returns:
- The
String
representation of the value. - Overrides:
- toString in class SnmpString
getTypeName
public final java.lang.String getTypeName()
- Returns a textual description of the type object.
- Returns:
- ASN.1 textual description.
- Overrides:
- getTypeName in class SnmpString