public class SnmpNull extends java.lang.Object implements SnmpSyntax, java.lang.Cloneable, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static byte |
ASNTYPE
Defines the ASN.1 value for the SnmpNull class.
|
(package private) static long |
serialVersionUID
Used to allow the serialization format to evolve.
|
| Constructor and Description |
|---|
SnmpNull()
Constructs a default SnmpNull class
|
SnmpNull(SnmpNull second)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Used to get a duplicate of the current object
so that it can be modified without affecting
the creating object.
|
int |
decodeASN(byte[] buf,
int offset,
AsnEncoder encoder)
Used to decode the null value from the ASN.1 buffer.
|
SnmpSyntax |
duplicate()
Used to get a duplicate of the current object
so that it can be modified without affecting
the creating object.
|
int |
encodeASN(byte[] buf,
int offset,
AsnEncoder encoder)
Used to encode the null value into an ASN.1 buffer.
|
java.lang.String |
toString()
Returns a string representation of the SNMP
Null object
|
byte |
typeId()
Used to retreive the ASN.1 type for this object.
|
static final long serialVersionUID
public static final byte ASNTYPE
public SnmpNull()
public SnmpNull(SnmpNull second)
second - The class object to set data from.public byte typeId()
typeId in interface SnmpSyntaxpublic int encodeASN(byte[] buf,
int offset,
AsnEncoder encoder)
throws AsnEncodingException
encodeASN in interface SnmpSyntaxbuf - The location to write the encoded dataoffset - The start of the encoded buffer.encoder - The ASN.1 encoder objectAsnEncodingException - Thrown if an encoding error occurspublic int decodeASN(byte[] buf,
int offset,
AsnEncoder encoder)
throws AsnDecodingException
decodeASN in interface SnmpSyntaxbuf - The encoded ASN.1 dataoffset - The offset of the first byte of dataencoder - The ASN.1 decoder object.AsnDecodingException - Thrown if an encoding error occurspublic SnmpSyntax duplicate()
duplicate in interface SnmpSyntaxpublic java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectGenerated by iurt on 2013.