snmp
Class SNMPNull

java.lang.Object
  extended bysnmp.SNMPObject
      extended bysnmp.SNMPNull

public class SNMPNull
extends SNMPObject

Object representing the SNMP Null data type.


Field Summary
protected  byte tag
           
 
Constructor Summary
SNMPNull()
           
 
Method Summary
 boolean equals(java.lang.Object other)
          Checks just that both are instances of SNMPNull (no embedded value to check).
protected  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 snmp.SNMPObject
hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

tag

protected byte tag
Constructor Detail

SNMPNull

public SNMPNull()
Method Detail

getValue

public java.lang.Object getValue()
Returns Java null reference.

Specified by:
getValue in class SNMPObject

setValue

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

Specified by:
setValue in class SNMPObject
Throws:
SNMPBadValueException

getBEREncoding

protected byte[] getBEREncoding()
Return BER encoding for a null object: two bytes, tag and length of 0.

Specified by:
getBEREncoding in class SNMPObject

equals

public boolean equals(java.lang.Object other)
Checks just that both are instances of SNMPNull (no embedded value to check).

Overrides:
equals in class SNMPObject

toString

public java.lang.String toString()
Returns String "Null"..

Specified by:
toString in class SNMPObject