com.amx.duet.tools.net.snmp.api
Class SNMPUnknownObject

java.lang.Object
  extended bycom.amx.duet.tools.net.snmp.api.SNMPObject
      extended bycom.amx.duet.tools.net.snmp.api.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
 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 com.amx.duet.tools.net.snmp.api.SNMPObject
equals, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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

toString

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

Specified by:
toString in class SNMPObject


Copyright © 2008 AMX LLC. All Rights Reserved.