public abstract class SnmpV2Error extends Object implements SnmpSyntax, Cloneable, Serializable
| Constructor and Description | 
|---|
SnmpV2Error()
Default constructor. 
 | 
SnmpV2Error(SnmpV2Error second)
Copy constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
abstract 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. 
 | 
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 Object clone()
Copyright © 2020. All rights reserved.