snmp
Class SNMPNull

java.lang.Object
  |
  +--snmp.SNMPObject
        |
        +--snmp.SNMPNull

public class SNMPNull
extends SNMPObject

Object representing the SNMP Null data type.


Constructor Summary
SNMPNull()
           
 
Method Summary
 byte[] getBEREncoding()
          Return BER encoding for a null object: two bytes, tag and length of 0.
 java.lang.Object getValue()
          Returns Java null reference.
 void setValue(java.lang.Object o)
          Always throws SNMPBadValueException (which null value did you want, anyway?)
 java.lang.String toString()
          Returns String "Null"..
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SNMPNull

public SNMPNull()
Method Detail

getValue

public java.lang.Object getValue()
Returns Java null reference.
Overrides:
getValue in class SNMPObject

setValue

public void setValue(java.lang.Object o)
              throws SNMPBadValueException
Always throws SNMPBadValueException (which null value did you want, anyway?)
Overrides:
setValue in class SNMPObject

getBEREncoding

public byte[] getBEREncoding()
Return BER encoding for a null object: two bytes, tag and length of 0.
Overrides:
getBEREncoding in class SNMPObject

toString

public java.lang.String toString()
Returns String "Null"..
Overrides:
toString in class SNMPObject