SourceForge.net Logo

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

Field Summary
 byte[] data
           
static ASN_TYPE type
           
 
Constructor Summary
OCTET_STR(byte[] data)
          Creates a new instance of OCTET_STR
OCTET_STR(String s)
           
 
Method Summary
 int asn_type()
           
 Object toJavaObject()
          Converts the value to a Java Object
 byte[] toOctetString()
          Converts the value to an integer.
 String toString()
          Converts the data to a Java String
 ASN_TYPE type()
           
 
Methods inherited from class org.netsnmp.ASN.ASNValue
compareTo, toBoolean, toInt, toInt64, toOBJECTID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

public static final ASN_TYPE type

data

public byte[] data
Constructor Detail

OCTET_STR

public OCTET_STR(byte[] data)
Creates a new instance of OCTET_STR


OCTET_STR

public OCTET_STR(String s)
Method Detail

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

SourceForge.net Logo