org.universAAL.lddi.lib.ieeex73std.org.bn
Class CoderFactory

Package class diagram package CoderFactory
java.lang.Object
  extended by org.universAAL.lddi.lib.ieeex73std.org.bn.CoderFactory

public class CoderFactory
extends Object

The CoderFactory class is factory for creating ASN.1 encoding/decoding implementations


Constructor Summary
CoderFactory()
           
 
Method Summary
static CoderFactory getInstance()
          Access to factory (Singleton)
 IDecoder newDecoder()
          Create new default decoder (The BER decoding is default)
 IDecoder newDecoder(String encodingSchema)
          Create new decoder for specified schema (BER, PER, PER/Aligned, PER/Unaligned, ...)
<T> IEncoder<T>
newEncoder()
          Create new default encoder (The BER encoding is default)
<T> IEncoder<T>
newEncoder(String encodingSchema)
          Create new encoder for specified schema (BER, PER, PER/Aligned, PER/Unaligned, ...)
 IASN1PreparedElementData newPreparedElementData(Class<?> typeInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoderFactory

public CoderFactory()
Method Detail

getInstance

public static CoderFactory getInstance()
Access to factory (Singleton)

Returns:
CoderFactory instance

newEncoder

public <T> IEncoder<T> newEncoder()
                       throws Exception
Create new default encoder (The BER encoding is default)

Returns:
Encoder
Throws:
Exception

newEncoder

public <T> IEncoder<T> newEncoder(String encodingSchema)
                       throws Exception
Create new encoder for specified schema (BER, PER, PER/Aligned, PER/Unaligned, ...)

Parameters:
encodingSchema - ASN.1 encoding specification
Returns:
Encoder for specified specification
Throws:
Exception

newDecoder

public IDecoder newDecoder()
                    throws Exception
Create new default decoder (The BER decoding is default)

Returns:
Throws:
Exception

newDecoder

public IDecoder newDecoder(String encodingSchema)
                    throws Exception
Create new decoder for specified schema (BER, PER, PER/Aligned, PER/Unaligned, ...)

Parameters:
encodingSchema -
Returns:
Decoder for specified specification
Throws:
Exception

newPreparedElementData

public IASN1PreparedElementData newPreparedElementData(Class<?> typeInfo)


Copyright © 2014 universAAL Consortium. All Rights Reserved.