public class PERAlignedDecoder extends Decoder
Constructor and Description |
---|
PERAlignedDecoder() |
Modifier and Type | Method and Description |
---|---|
<T> T |
decode(InputStream stream,
Class<T> objectClass)
Decode object from stream
|
DecodedObject |
decodeAny(DecodedObject decodedTag,
Class objectClass,
ElementInfo elementInfo,
InputStream stream) |
DecodedObject |
decodeBitString(DecodedObject decodedTag,
Class objectClass,
ElementInfo elementInfo,
InputStream stream) |
DecodedObject |
decodeBoolean(DecodedObject decodedTag,
Class objectClass,
ElementInfo elementInfo,
InputStream stream) |
DecodedObject |
decodeChoice(DecodedObject decodedTag,
Class objectClass,
ElementInfo elementInfo,
InputStream stream) |
protected int |
decodeConstraintLengthDeterminant(int min,
int max,
BitArrayInputStream stream)
Decode the constraint length determinant.
|
protected long |
decodeConstraintNumber(long min,
long max,
BitArrayInputStream stream)
Decode of the constrained whole number
ITU-T X.691. 10.5.
|
DecodedObject |
decodeEnumItem(DecodedObject decodedTag,
Class objectClass,
Class enumClass,
ElementInfo elementInfo,
InputStream stream) |
DecodedObject |
decodeInteger(DecodedObject decodedTag,
Class objectClass,
ElementInfo elementInfo,
InputStream stream) |
protected long |
decodeIntegerValueAsBytes(int intLen,
InputStream stream) |
protected int |
decodeLength(ElementInfo elementInfo,
InputStream stream) |
protected int |
decodeLengthDeterminant(BitArrayInputStream stream)
Decode the length determinant
ITU-T X.691. 10.9.
|
protected int |
decodeNormallySmallNumber(BitArrayInputStream stream)
Decode the normally small number
ITU-T X.691. 10.6
NOTE � (Tutorial) This procedure is used when encoding
a non-negative whole number that is expected to be small, but whose size
is potentially unlimited due to the presence of an extension marker.
|
DecodedObject |
decodeNull(DecodedObject decodedTag,
Class objectClass,
ElementInfo elementInfo,
InputStream stream) |
DecodedObject |
decodeObjectIdentifier(DecodedObject decodedTag,
Class objectClass,
ElementInfo elementInfo,
InputStream stream) |
DecodedObject |
decodeOctetString(DecodedObject decodedTag,
Class objectClass,
ElementInfo elementInfo,
InputStream stream) |
DecodedObject |
decodeReal(DecodedObject decodedTag,
Class objectClass,
ElementInfo elementInfo,
InputStream stream) |
protected int |
decodeSemiConstraintNumber(int min,
BitArrayInputStream stream)
Decode the semi-constrained whole number
ITU-T X.691. 10.7.
|
DecodedObject |
decodeSequence(DecodedObject decodedTag,
Class objectClass,
ElementInfo elementInfo,
InputStream stream) |
DecodedObject |
decodeSequenceOf(DecodedObject decodedTag,
Class objectClass,
ElementInfo elementInfo,
InputStream stream) |
DecodedObject |
decodeString(DecodedObject decodedTag,
Class objectClass,
ElementInfo elementInfo,
InputStream stream) |
DecodedObject |
decodeTag(InputStream stream) |
protected int |
decodeUnconstraintNumber(BitArrayInputStream stream)
Decode the unconstrained whole number
ITU-T X.691. 10.8.
|
protected int |
getSequencePreambleBitLen(Class objectClass,
ElementInfo elementInfo) |
protected void |
skipAlignedBits(InputStream stream) |
createInstanceForElement, createSequenceFieldInfo, decodeBoxedType, decodeClassType, decodeElement, decodeEnum, decodeJavaElement, decodePreparedElement, decodeSequenceField, initDefaultValues, invokeSelectMethodForField, invokeSetterMethodForField
public <T> T decode(InputStream stream, Class<T> objectClass) throws Exception
IDecoder
public DecodedObject decodeTag(InputStream stream) throws Exception
Exception
protected void skipAlignedBits(InputStream stream)
protected long decodeIntegerValueAsBytes(int intLen, InputStream stream) throws Exception
Exception
protected int decodeConstraintLengthDeterminant(int min, int max, BitArrayInputStream stream) throws Exception
Exception
protected int decodeLengthDeterminant(BitArrayInputStream stream) throws IOException
IOException
protected long decodeConstraintNumber(long min, long max, BitArrayInputStream stream) throws Exception
Exception
protected int decodeSemiConstraintNumber(int min, BitArrayInputStream stream) throws Exception
Exception
protected int decodeNormallySmallNumber(BitArrayInputStream stream) throws Exception
Exception
protected int decodeUnconstraintNumber(BitArrayInputStream stream) throws Exception
Exception
protected int decodeLength(ElementInfo elementInfo, InputStream stream) throws Exception
Exception
public DecodedObject decodeChoice(DecodedObject decodedTag, Class objectClass, ElementInfo elementInfo, InputStream stream) throws Exception
decodeChoice
in interface IASN1TypesDecoder
decodeChoice
in class Decoder
Exception
protected int getSequencePreambleBitLen(Class objectClass, ElementInfo elementInfo) throws Exception
Exception
public DecodedObject decodeSequence(DecodedObject decodedTag, Class objectClass, ElementInfo elementInfo, InputStream stream) throws Exception
decodeSequence
in interface IASN1TypesDecoder
decodeSequence
in class Decoder
Exception
public DecodedObject decodeEnumItem(DecodedObject decodedTag, Class objectClass, Class enumClass, ElementInfo elementInfo, InputStream stream) throws Exception
Exception
public DecodedObject decodeBoolean(DecodedObject decodedTag, Class objectClass, ElementInfo elementInfo, InputStream stream) throws Exception
Exception
public DecodedObject decodeAny(DecodedObject decodedTag, Class objectClass, ElementInfo elementInfo, InputStream stream) throws Exception
Exception
public DecodedObject decodeNull(DecodedObject decodedTag, Class objectClass, ElementInfo elementInfo, InputStream stream) throws Exception
Exception
public DecodedObject decodeInteger(DecodedObject decodedTag, Class objectClass, ElementInfo elementInfo, InputStream stream) throws Exception
Exception
public DecodedObject decodeReal(DecodedObject decodedTag, Class objectClass, ElementInfo elementInfo, InputStream stream) throws Exception
Exception
public DecodedObject decodeOctetString(DecodedObject decodedTag, Class objectClass, ElementInfo elementInfo, InputStream stream) throws Exception
Exception
public DecodedObject decodeBitString(DecodedObject decodedTag, Class objectClass, ElementInfo elementInfo, InputStream stream) throws Exception
Exception
public DecodedObject decodeString(DecodedObject decodedTag, Class objectClass, ElementInfo elementInfo, InputStream stream) throws Exception
Exception
public DecodedObject decodeSequenceOf(DecodedObject decodedTag, Class objectClass, ElementInfo elementInfo, InputStream stream) throws Exception
Exception
public DecodedObject decodeObjectIdentifier(DecodedObject decodedTag, Class objectClass, ElementInfo elementInfo, InputStream stream) throws Exception
Exception
Copyright © 2015 universAAL Consortium. All Rights Reserved.