|
JoeSNMP API 0.3.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SnmpSyntax
This class defines the interface that must be implemented by all object that can be passed or received to/from a SNMP agent and manager. These include intergers, counters, strings, etc al. The interface defines the methods for encoding and decoding buffers. It also defines the methods for duplicating objects and getting the ASN.1 type.
Method Summary | |
---|---|
int |
decodeASN(byte[] buf,
int offset,
AsnEncoder encoder)
Decodes the ASN.1 buffer and sets the values in the SnmpSyntax object. |
SnmpSyntax |
duplicate()
Creates a duplicate (in memory) object of the caller. |
int |
encodeASN(byte[] buf,
int offset,
AsnEncoder encoder)
Encodes the data object in the specified buffer using the AsnEncoder object |
byte |
typeId()
Returns the ASN.1 type of the implementor object. |
Method Detail |
---|
byte typeId()
int encodeASN(byte[] buf, int offset, AsnEncoder encoder) throws AsnEncodingException
buf
- The buffer to write the encoded informationoffset
- The location to start writing the encoded dataencoder
- The object used to encode the data
AsnEncodingException
- Thrown if an encoding error occursint decodeASN(byte[] buf, int offset, AsnEncoder encoder) throws AsnDecodingException
buf
- The encoded data bufferoffset
- The offset of the first valid byteencoder
- The object used to decode the ASN.1 data
AsnDecodingException
- Thrown if an encoding error occursSnmpSyntax duplicate()
|
JoeSNMP API 0.3.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |