jp.bitmeister.asn1.codec
Interface ASN1Encoder

All Known Implementing Classes:
BerEncoder, DerEncoder, XerEncoder

public interface ASN1Encoder

The interface for ASN.1 encoder classes.

Author:
WATANABE, Jun.

Method Summary
 int encode(ASN1Type data)
          Encodes the ASN.1 data to destination format.
 

Method Detail

encode

int encode(ASN1Type data)
           throws ASN1EncodingException
Encodes the ASN.1 data to destination format.

Parameters:
data - The ASN.1 data to be encoded.
Returns:
The size of encoded data.
Throws:
ASN1EncodingException - Thrown when an error occurred while the encoding process.


Copyright © 2012 BitMeister Inc. All Rights Reserved.