org.netsnmp.ASN
Class OCTET_STR
java.lang.Object
|
+--org.netsnmp.ASN.ASNValue
|
+--org.netsnmp.ASN.OCTET_STR
- All Implemented Interfaces:
- Comparable, Serializable
- Direct Known Subclasses:
- IPADDRESS
- public class OCTET_STR
- extends ASNValue
- Author:
- Andrew E. Page aepage@users.sourceforge.net
- See Also:
- Serialized Form
type
public static final ASN_TYPE type
data
public byte[] data
OCTET_STR
public OCTET_STR(byte[] data)
- Creates a new instance of OCTET_STR
OCTET_STR
public OCTET_STR(String s)
toOctetString
public byte[] toOctetString()
- Description copied from class:
ASNValue
- Converts the value to an integer.
- Overrides:
toOctetString
in class ASNValue
asn_type
public int asn_type()
- Specified by:
asn_type
in class ASNValue
type
public ASN_TYPE type()
- Specified by:
type
in class ASNValue
toString
public String toString()
- Converts the data to a Java String
- Overrides:
toString
in class Object
toJavaObject
public Object toJavaObject()
- Description copied from class:
ASNValue
- Converts the value to a Java Object
- Specified by:
toJavaObject
in class ASNValue