jp.bitmeister.asn1.codec
Interface ASN1Decoder

All Known Implementing Classes:
BerDecoder

public interface ASN1Decoder

The interface for ASN.1 decoder classes.

Author:
WATANABE, Jun.

Method Summary
 ASN1Type decode()
          Decodes source data to an ASN.1 data.
<T extends ASN1Type>
T
decode(java.lang.Class<T> type)
          Decodes source data and sets these decoded values to an instance of the ASN.1 type.
 

Method Detail

decode

<T extends ASN1Type> T decode(java.lang.Class<T> type)
                          throws ASN1DecodingException
Decodes source data and sets these decoded values to an instance of the ASN.1 type.

Type Parameters:
T - Indicates the ASN.1 type.
Parameters:
type - The class object of the ASN.1 type.
Returns:
An instance of the ASN.1 type.
Throws:
ASN1DecodingException - Thrown when an error occurred while the decoding process.

decode

ASN1Type decode()
                throws ASN1DecodingException
Decodes source data to an ASN.1 data. The type of the data will be specified by type indicator (for example ASN.1 tag) included in the source data.

Returns:
Decoded ASN.1 data.
Throws:
ASN1DecodingException - Thrown when an error occurred while the decoding process.