public class SnmpNull extends Object implements SnmpSyntax, Cloneable, Serializable
Modifier and Type | Field and Description |
---|---|
static byte |
ASNTYPE
Defines the ASN.1 value for the SnmpNull class.
|
Constructor and Description |
---|
SnmpNull()
Constructs a default SnmpNull class
|
SnmpNull(SnmpNull second)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
String |
toString()
Returns a string representation of the SNMP Null object
|
byte |
typeId()
Used to retreive the ASN.1 type for this object.
|
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 SnmpSyntax
public int encodeASN(byte[] buf, int offset, AsnEncoder encoder) throws AsnEncodingException
encodeASN
in interface SnmpSyntax
buf
- 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 SnmpSyntax
buf
- 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 SnmpSyntax
public Object clone()
Copyright © 2021. All rights reserved.