|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsnmp.SNMPObject
snmp.SNMPOctetString
Class representing a general string of octets.
Field Summary | |
protected byte[] |
data
|
protected byte |
tag
|
Constructor Summary | |
SNMPOctetString()
Create a zero-length octet string. |
|
SNMPOctetString(byte[] enc)
Create an octet string from the supplied byte array. |
|
SNMPOctetString(java.lang.String stringData)
Create an octet string from the bytes of the supplied String. |
Method Summary | |
boolean |
equals(java.lang.Object other)
Checks the embedded arrays for equality. |
protected void |
extractFromBEREncoding(byte[] enc)
|
protected byte[] |
getBEREncoding()
Returns the BER encoding for the octet string. |
java.lang.Object |
getValue()
Return the array of raw bytes. |
int |
hashCode()
Generates a hash value so SNMP Octet String subclasses can be used in Hashtables. |
void |
setValue(java.lang.Object data)
Used to set the value from a byte array. |
java.lang.String |
toHexString()
Returns a space-separated hex string corresponding to the raw bytes. |
java.lang.String |
toString()
Returns a String constructed from the raw bytes. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected byte[] data
protected byte tag
Constructor Detail |
public SNMPOctetString()
public SNMPOctetString(java.lang.String stringData)
public SNMPOctetString(byte[] enc)
Method Detail |
public java.lang.Object getValue()
getValue
in class SNMPObject
public void setValue(java.lang.Object data) throws SNMPBadValueException
setValue
in class SNMPObject
SNMPBadValueException
- Indicates an incorrect object type supplied.protected byte[] getBEREncoding()
getBEREncoding
in class SNMPObject
protected void extractFromBEREncoding(byte[] enc)
public boolean equals(java.lang.Object other)
equals
in class SNMPObject
public int hashCode()
hashCode
in class SNMPObject
public java.lang.String toString()
toString
in class SNMPObject
public java.lang.String toHexString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |