snmp
Class SNMPUnknownObject

java.lang.Object
  extended bysnmp.SNMPObject
      extended bysnmp.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.


Field Summary
protected  byte tag
           
 
Constructor Summary
SNMPUnknownObject(byte[] enc)
          Just takes a byte array, and uses this as raw bytes.
 
Method Summary
protected  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 snmp.SNMPObject
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

tag

protected byte tag
Constructor Detail

SNMPUnknownObject

public SNMPUnknownObject(byte[] enc)
Just takes a byte array, and uses this as raw bytes.

Method Detail

getValue

public java.lang.Object getValue()
Return a byte array containing the raw bytes supplied.

Specified by:
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.

Specified by:
setValue in class SNMPObject
Throws:
SNMPBadValueException

getBEREncoding

protected byte[] getBEREncoding()
Return the BER encoding of this object.

Specified by:
getBEREncoding in class SNMPObject

toString

public java.lang.String toString()
Return String created from raw bytes of this object.

Specified by:
toString in class SNMPObject