com.objsys.asn1j.runtime
Interface Asn1BerDecoder


public interface Asn1BerDecoder

This interface provides an interface for decoding. It is meant to be implemented by generated classes corresponding to enumerated types. It is useful for cases where a non-static decode method is needed, such as during decoding driven by table constraints, where the type to be decoded is not known at compile time.


Method Summary
 Asn1Type decode(Asn1BerDecodeBuffer buffer, boolean explicit, int implicitLength)
          Decode value from given buffer.
 

Method Detail

decode

Asn1Type decode(Asn1BerDecodeBuffer buffer,
                boolean explicit,
                int implicitLength)
                throws Asn1Exception,
                       java.io.IOException
Decode value from given buffer.

Parameters:
buffer -
explicit - if true, the value to be decoded is preceded by a tag and length, which must first be decoded. Otherwise, implicitLength provides the length of the value to be decoded.
implicitLength - The length of the value to be decoded if explicit was given as false.
Returns:
Throws:
Asn1Exception
java.io.IOException