public abstract class Decoder extends Object implements IDecoder, IASN1TypesDecoder
Constructor and Description |
---|
Decoder() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decodeAny, decodeBitString, decodeBoolean, decodeEnumItem, decodeInteger, decodeNull, decodeObjectIdentifier, decodeOctetString, decodeReal, decodeSequenceOf, decodeString, decodeTag
public <T> T decode(InputStream stream, Class<T> objectClass) throws Exception
IDecoder
public DecodedObject decodeClassType(DecodedObject decodedTag, Class objectClass, ElementInfo elementInfo, InputStream stream) throws Exception
decodeClassType
in interface IASN1TypesDecoder
Exception
protected DecodedObject decodeJavaElement(DecodedObject decodedTag, Class objectClass, ElementInfo elementInfo, InputStream stream) throws Exception
Exception
public DecodedObject decodePreparedElement(DecodedObject decodedTag, Class objectClass, ElementInfo elementInfo, InputStream stream) throws Exception
decodePreparedElement
in interface IASN1TypesDecoder
Exception
public void invokeSetterMethodForField(Field field, Object object, Object param, ElementInfo elementInfo) throws Exception
invokeSetterMethodForField
in interface IASN1TypesDecoder
Exception
public void invokeSelectMethodForField(Field field, Object object, Object param, ElementInfo elementInfo) throws Exception
invokeSelectMethodForField
in interface IASN1TypesDecoder
Exception
protected void initDefaultValues(Object object, ElementInfo elementInfo) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
protected Object createInstanceForElement(Class objectClass, ElementInfo elementInfo) throws Exception
Exception
public DecodedObject decodeSequence(DecodedObject decodedTag, Class objectClass, ElementInfo elementInfo, InputStream stream) throws Exception
decodeSequence
in interface IASN1TypesDecoder
Exception
protected ElementInfo createSequenceFieldInfo(ElementInfo elementInfo, Object sequenceObj, Field field, int fieldIdx)
protected DecodedObject decodeSequenceField(DecodedObject fieldTag, Object sequenceObj, int fieldIdx, Field field, InputStream stream, ElementInfo elementInfo, boolean optionalCheck) throws Exception
Exception
public DecodedObject decodeChoice(DecodedObject decodedTag, Class objectClass, ElementInfo elementInfo, InputStream stream) throws Exception
decodeChoice
in interface IASN1TypesDecoder
Exception
public DecodedObject decodeEnum(DecodedObject decodedTag, Class objectClass, ElementInfo elementInfo, InputStream stream) throws Exception
decodeEnum
in interface IASN1TypesDecoder
Exception
public DecodedObject decodeElement(DecodedObject decodedTag, Class objectClass, ElementInfo elementInfo, InputStream stream) throws Exception
decodeElement
in interface IASN1TypesDecoder
Exception
public DecodedObject decodeBoxedType(DecodedObject decodedTag, Class objectClass, ElementInfo elementInfo, InputStream stream) throws Exception
decodeBoxedType
in interface IASN1TypesDecoder
Exception
Copyright © 2015 universAAL Consortium. All Rights Reserved.