public interface BERSerializable
BERSerializable
has 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.Modifier and Type | Method and Description |
---|---|
void |
decodeBER(BERInputStream inputStream)
Decodes a
Variable from an InputStream . |
void |
encodeBER(OutputStream outputStream)
Encodes a
Variable to an OutputStream . |
int |
getBERLength()
Returns the length of this
BERSerializable object
in bytes when encoded according to the Basic Encoding Rules (BER). |
int |
getBERPayloadLength()
Returns the length of the payload of this
BERSerializable object
in bytes when encoded according to the Basic Encoding Rules (BER). |
int getBERLength()
BERSerializable
object
in bytes when encoded according to the Basic Encoding Rules (BER).int getBERPayloadLength()
BERSerializable
object
in bytes when encoded according to the Basic Encoding Rules (BER).void decodeBER(BERInputStream inputStream) throws IOException
Variable
from an InputStream
.inputStream
- an InputStream
containing a BER encoded byte stream.IOException
- if the stream could not be decoded by using BER rules.void encodeBER(OutputStream outputStream) throws IOException
Variable
to an OutputStream
.outputStream
- an OutputStream
.IOException
- if an error occurs while writing to the stream.Copyright © 2016 SNMP4J.org. All rights reserved.