|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BERSerializable
The interface 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.
Method Summary | |
---|---|
void |
decodeBER(BERInputStream inputStream)
Decodes a Variable from an InputStream . |
void |
encodeBER(java.io.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). |
Method Detail |
---|
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 java.io.IOException
Variable
from an InputStream
.
inputStream
- an InputStream
containing a BER encoded byte stream.
java.io.IOException
- if the stream could not be decoded by using BER rules.void encodeBER(java.io.OutputStream outputStream) throws java.io.IOException
Variable
to an OutputStream
.
outputStream
- an OutputStream
.
java.io.IOException
- if an error occurs while writing to the stream.
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |