public abstract class Encoder<T> extends Object implements IEncoder<T>, IASN1TypesEncoder
Constructor and Description |
---|
Encoder() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
encodeAny, encodeBitString, encodeBoolean, encodeEnumItem, encodeInteger, encodeNull, encodeObjectIdentifier, encodeOctetString, encodeReal, encodeSequenceOf, encodeString
public void encode(T object, OutputStream stream) throws Exception
IEncoder
encode
in interface IEncoder<T>
object
- User objectstream
- Stream to encodingException
CoderFactory
public int encodeClassType(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
encodeClassType
in interface IASN1TypesEncoder
Exception
protected int encodeJavaElement(Object object, OutputStream stream, ElementInfo info) throws Exception
Exception
public int encodePreparedElement(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
encodePreparedElement
in interface IASN1TypesEncoder
Exception
public Object invokeGetterMethodForField(Field field, Object object, ElementInfo elementInfo) throws Exception
invokeGetterMethodForField
in interface IASN1TypesEncoder
Exception
public boolean invokeSelectedMethodForField(Field field, Object object, ElementInfo elementInfo) throws Exception
invokeSelectedMethodForField
in interface IASN1TypesEncoder
Exception
public int encodeSequence(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
encodeSequence
in interface IASN1TypesEncoder
Exception
protected int encodeSequenceField(Object object, int fieldIdx, Field field, OutputStream stream, ElementInfo elementInfo) throws Exception
Exception
protected boolean isSelectedChoiceItem(Field field, Object object, ElementInfo info) throws Exception
Exception
protected ElementInfo getChoiceSelectedElement(Object object, ElementInfo elementInfo) throws Exception
Exception
public int encodeChoice(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
encodeChoice
in interface IASN1TypesEncoder
Exception
public int encodeEnum(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
encodeEnum
in interface IASN1TypesEncoder
Exception
public int encodeElement(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
encodeElement
in interface IASN1TypesEncoder
Exception
public int encodeBoxedType(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
encodeBoxedType
in interface IASN1TypesEncoder
Exception
Copyright © 2015 universAAL Consortium. All Rights Reserved.