codec.asn1
Interface Encoder

All Known Implementing Classes:
AbstractEncoder, RunLengthEncoder

public interface Encoder

Defines the methods that must be implemented by encoders of ASN.1 types.

Version:
"$Id: Encoder.java,v 1.2 2000/12/06 17:47:29 vroth Exp $"
Author:
Volker Roth

Method Summary
 void writeBitString(ASN1BitString t)
           
 void writeBoolean(ASN1Boolean t)
           
 void writeCollection(ASN1Collection t)
           
 void writeInteger(ASN1Integer t)
           
 void writeNull(ASN1Null t)
           
 void writeObjectIdentifier(ASN1ObjectIdentifier t)
           
 void writeOctetString(ASN1OctetString t)
           
 void writeReal(ASN1Type t)
           
 void writeString(ASN1String t)
           
 void writeTaggedType(ASN1TaggedType t)
           
 void writeTime(ASN1Time t)
           
 void writeType(ASN1Type t)
           
 void writeTypeIdentifier(ASN1Type t)
           
 

Method Detail

writeType

public void writeType(ASN1Type t)
               throws ASN1Exception,
                      IOException

writeBoolean

public void writeBoolean(ASN1Boolean t)
                  throws ASN1Exception,
                         IOException

writeInteger

public void writeInteger(ASN1Integer t)
                  throws ASN1Exception,
                         IOException

writeBitString

public void writeBitString(ASN1BitString t)
                    throws ASN1Exception,
                           IOException

writeOctetString

public void writeOctetString(ASN1OctetString t)
                      throws ASN1Exception,
                             IOException

writeNull

public void writeNull(ASN1Null t)
               throws ASN1Exception,
                      IOException

writeObjectIdentifier

public void writeObjectIdentifier(ASN1ObjectIdentifier t)
                           throws ASN1Exception,
                                  IOException

writeReal

public void writeReal(ASN1Type t)
               throws ASN1Exception,
                      IOException

writeString

public void writeString(ASN1String t)
                 throws ASN1Exception,
                        IOException

writeCollection

public void writeCollection(ASN1Collection t)
                     throws ASN1Exception,
                            IOException

writeTime

public void writeTime(ASN1Time t)
               throws ASN1Exception,
                      IOException

writeTaggedType

public void writeTaggedType(ASN1TaggedType t)
                     throws ASN1Exception,
                            IOException

writeTypeIdentifier

public void writeTypeIdentifier(ASN1Type t)
                         throws ASN1Exception,
                                IOException


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.