Module org.snmp4j
Package org.snmp4j.asn1
Provides classes and interfaces
for the mapping between Abstract Syntax Notation One (ASN.1)
formatted values and their transfer syntax according to the Basic Encoding Rules
(BER).

The org.snmp4j.asn1 classes are capable of serializing of ASN.1
formatted values into a byte stream and deserializing the same from a byte
stream. There are three groups of classes/interfaces in this package:
- The
BERclass implements the BER serialization and deserialization by providing static methods for encoding/decoding of primitive ASN.1 and Structure of Management Information (SMI) data types. - The
BERSerializableinterface provides a common interface for all objects that are (de)serializable according to the Basic Encoding Rules (BER). - The
BERInputStreamand theBEROutputStreamprovide optimized implementations for the serialization and deserialization of theInputStreamandOutputStreamabstract classes.
The following UML class diagram shows the most important classes of the
org.snmp4j.asn1 package and their relationships
(relationships to other packages are not shown):

-
Interface Summary Interface Description BERSerializable The interfaceBERSerializablehas to be implemented by any data type class that needs to be serialized using the Basic Encoding Rules (BER) that provides enconding rules for ASN.1 data types. -
Class Summary Class Description BER The BER class provides utility methods for the BER encoding and decoding.BER.MutableByte TheMutableByteclass serves for exchanging type information from the various decode* methods.BERInputStream TheBERInputStreamclass wraps aByteBufferand implements theInputStreamabstract class.BEROutputStream TheBEROutputStreamclass wraps aByteBufferto support BER encoding.