snmp
Class SNMPUnknownObject
java.lang.Object
|
+--snmp.SNMPObject
|
+--snmp.SNMPUnknownObject
- public class SNMPUnknownObject
- extends SNMPObject
Used when an unknown SNMP object type is encountered. Just takes a byte array
for its constructor, and uses this as raw bytes.
Constructor Summary |
SNMPUnknownObject(byte[] enc)
Just takes a byte array, and uses this as raw bytes. |
Method Summary |
byte[] |
getBEREncoding()
Return the BER encoding of this object. |
java.lang.Object |
getValue()
Return a byte array containing the raw bytes supplied. |
void |
setValue(java.lang.Object data)
Takes a byte array containing the raw bytes stored as the value. |
java.lang.String |
toString()
Return String created from raw bytes of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SNMPUnknownObject
public SNMPUnknownObject(byte[] enc)
- Just takes a byte array, and uses this as raw bytes.
getValue
public java.lang.Object getValue()
- Return a byte array containing the raw bytes supplied.
- Overrides:
getValue
in class SNMPObject
setValue
public void setValue(java.lang.Object data)
throws SNMPBadValueException
- Takes a byte array containing the raw bytes stored as the value.
- Overrides:
setValue
in class SNMPObject
getBEREncoding
public byte[] getBEREncoding()
- Return the BER encoding of this object.
- Overrides:
getBEREncoding
in class SNMPObject
toString
public java.lang.String toString()
- Return String created from raw bytes of this object.
- Overrides:
toString
in class SNMPObject