All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.jaw.snmp.common.SnmpNull

java.lang.Object
   |
   +----com.sun.jaw.snmp.common.SnmpValue
           |
           +----com.sun.jaw.snmp.common.SnmpNull

public class SnmpNull
extends SnmpValue
The SnmpNull class represents an SNMP null value.


Constructor Index

 o SnmpNull()
Constructs a new SnmpNull
 o SnmpNull(int)
Constructs a new SnmpNull with the specified tag.
 o SnmpNull(String)
Constructs a new SnmpNull.

Method Index

 o clone()
Creates a new object of the same class as this object.
 o duplicate()
Same as clone, but you can not perform cloning using this object because clone is protected.
 o getTag()
Return the tag assigned to this SnmpNull
 o getTypeName()
Returns a textual description of the object.
 o toOid()
Convert the NULL value to its Oid form.
 o toString()
Convert the NULL value to its asn1 value string.

Constructors

 o SnmpNull
 public SnmpNull()
Constructs a new SnmpNull

 o SnmpNull
 public SnmpNull(String n)
Constructs a new SnmpNull.

 o SnmpNull
 public SnmpNull(int t)
Constructs a new SnmpNull with the specified tag.

Methods

 o getTag
 public int getTag()
Return the tag assigned to this SnmpNull

 o toString
 public String toString()
Convert the NULL value to its asn1 value string. When the tag is not the universal one, it is preprend to the string form.

Returns:
The asn1 value string
Overrides:
toString in class Object
 o toOid
 public SnmpOid toOid()
Convert the NULL value to its Oid form. Normally a null value cannot be used as an index value. So this method trigger an exception.

Returns:
The Oid form
Overrides:
toOid in class SnmpValue
 o duplicate
 public final synchronized SnmpValue duplicate()
Same as clone, but you can not perform cloning using this object because clone is protected.

Overrides:
duplicate in class SnmpValue
 o clone
 public final synchronized Object clone()
Creates a new object of the same class as this object.

Overrides:
clone in class Object
 o getTypeName
 public String getTypeName()
Returns a textual description of the object.

Returns:
ASN.1 textual description.
Overrides:
getTypeName in class SnmpValue

All Packages  Class Hierarchy  This Package  Previous  Next  Index