public abstract class SnmpV2Error extends java.lang.Object implements SnmpSyntax, java.lang.Cloneable, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
(package private) static long |
serialVersionUID
Changes to define new serialzation formats.
|
| Constructor and Description |
|---|
SnmpV2Error()
Default constructor.
|
SnmpV2Error(SnmpV2Error second)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Object |
clone()
Returns a duplicate of the current object.
|
int |
decodeASN(byte[] buf,
int offset,
AsnEncoder encoder)
Decodes the passed buffer and updates the object to
match the encoded information.
|
abstract SnmpSyntax |
duplicate()
Returns a duplicate of the current object.
|
int |
encodeASN(byte[] buf,
int offset,
AsnEncoder encoder)
Encodes the SNMPv2 error into the passed buffer
using the encoder object.
|
abstract byte |
typeId()
Returns the ASN.1 type identifier for the
SNMPv2 error.
|
static final long serialVersionUID
public SnmpV2Error()
public SnmpV2Error(SnmpV2Error second)
second - The object to copy to selfpublic abstract byte typeId()
typeId in interface SnmpSyntaxpublic int encodeASN(byte[] buf,
int offset,
AsnEncoder encoder)
throws AsnEncodingException
encodeASN in interface SnmpSyntaxbuf - The buffer to store encoded bytesoffset - The start of the encoding locationencoder - The encoding objectAsnEncodingException - Thrown if an encoding error occurspublic int decodeASN(byte[] buf,
int offset,
AsnEncoder encoder)
throws AsnDecodingException
decodeASN in interface SnmpSyntaxbuf - The encoded bufferoffset - The offset of the first byte of encoded dataencoder - The object used to decode the data.AsnDecodingException - Thrown if an encoding error occurspublic abstract SnmpSyntax duplicate()
duplicate in interface SnmpSyntaxpublic abstract java.lang.Object clone()
clone in class java.lang.ObjectGenerated by iurt on 2013.