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.
-
SnmpNull()
- Constructs a new SnmpNull
-
SnmpNull(int)
- Constructs a new SnmpNull with the specified tag.
-
SnmpNull(String)
- Constructs a new SnmpNull.
-
clone()
- Creates a new object of the same class as this object.
-
duplicate()
- Same as clone, but you can not perform cloning using this object because
clone is protected.
-
getTag()
- Return the tag assigned to this SnmpNull
-
getTypeName()
- Returns a textual description of the object.
-
toOid()
- Convert the NULL value to its Oid form.
-
toString()
- Convert the NULL value to its asn1 value string.
SnmpNull
public SnmpNull()
- Constructs a new SnmpNull
SnmpNull
public SnmpNull(String n)
- Constructs a new SnmpNull.
SnmpNull
public SnmpNull(int t)
- Constructs a new SnmpNull with the specified tag.
getTag
public int getTag()
- Return the tag assigned to this SnmpNull
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
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
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
clone
public final synchronized Object clone()
- Creates a new object of the same class as this object.
- Overrides:
- clone in class Object
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