public class PERAlignedEncoder<T> extends Encoder<T>
Constructor and Description |
---|
PERAlignedEncoder() |
Modifier and Type | Method and Description |
---|---|
protected void |
doAlign(OutputStream stream) |
void |
encode(T object,
OutputStream stream)
Encode object
|
int |
encodeAny(Object object,
OutputStream stream,
ElementInfo elementInfo) |
int |
encodeBitString(Object object,
OutputStream stream,
ElementInfo elementInfo) |
int |
encodeBoolean(Object object,
OutputStream stream,
ElementInfo elementInfo) |
int |
encodeChoice(Object object,
OutputStream stream,
ElementInfo elementInfo)
Encoding of the choice structure
ITU-T X.691. 22.
|
protected int |
encodeChoicePreamble(Object object,
OutputStream stream,
int elementIndex,
ElementInfo elementInfo) |
protected int |
encodeConstraintLengthDeterminant(int length,
int min,
int max,
BitArrayOutputStream stream)
Encoding constraint length determinant procedure.
|
protected int |
encodeConstraintNumber(long value,
long min,
long max,
BitArrayOutputStream stream)
Encoding of a constrained whole number
ITU-T X.691. 10.5.
|
int |
encodeEnumItem(Object enumConstant,
Class enumClass,
OutputStream stream,
ElementInfo elementInfo) |
int |
encodeInteger(Object object,
OutputStream stream,
ElementInfo elementInfo) |
protected int |
encodeIntegerValueAsBytes(long value,
OutputStream stream) |
int |
encodeLength(int value,
ElementInfo elementInfo,
OutputStream stream) |
protected int |
encodeLengthDeterminant(int length,
BitArrayOutputStream stream)
Encoding length determinant procedure.
|
protected int |
encodeNormallySmallNumber(int value,
BitArrayOutputStream stream)
Encode 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.
|
int |
encodeNull(Object object,
OutputStream stream,
ElementInfo elementInfo) |
int |
encodeObjectIdentifier(Object object,
OutputStream stream,
ElementInfo elementInfo) |
int |
encodeOctetString(Object object,
OutputStream stream,
ElementInfo elementInfo) |
int |
encodeReal(Object object,
OutputStream stream,
ElementInfo elementInfo) |
protected int |
encodeSemiConstraintNumber(int value,
int min,
BitArrayOutputStream stream)
Encoding of a semi-constrained whole number
ITU-T X.691. 10.7.
|
int |
encodeSequence(Object object,
OutputStream stream,
ElementInfo elementInfo) |
int |
encodeSequenceOf(Object object,
OutputStream stream,
ElementInfo elementInfo) |
protected int |
encodeSequencePreamble(Object object,
Field[] fields,
ElementInfo elementInfo,
OutputStream stream) |
protected int |
encodeSet(Object object,
OutputStream stream,
ElementInfo elementInfo) |
int |
encodeString(Object object,
OutputStream stream,
ElementInfo elementInfo) |
protected int |
encodeUnconstraintNumber(long value,
BitArrayOutputStream stream)
Encoding of a unconstrained whole number
ITU-T X.691. 10.8.
|
encodeBoxedType, encodeClassType, encodeElement, encodeEnum, encodeJavaElement, encodePreparedElement, encodeSequenceField, getChoiceSelectedElement, invokeGetterMethodForField, invokeSelectedMethodForField, isSelectedChoiceItem
public void encode(T object, OutputStream stream) throws Exception
IEncoder
protected void doAlign(OutputStream stream)
protected int encodeIntegerValueAsBytes(long value, OutputStream stream) throws Exception
Exception
protected int encodeConstraintLengthDeterminant(int length, int min, int max, BitArrayOutputStream stream) throws Exception
Exception
protected int encodeLengthDeterminant(int length, BitArrayOutputStream stream) throws IOException
IOException
protected int encodeConstraintNumber(long value, long min, long max, BitArrayOutputStream stream) throws Exception
Exception
protected int encodeSemiConstraintNumber(int value, int min, BitArrayOutputStream stream) throws Exception
Exception
protected int encodeNormallySmallNumber(int value, BitArrayOutputStream stream) throws Exception
Exception
protected int encodeUnconstraintNumber(long value, BitArrayOutputStream stream) throws Exception
Exception
public int encodeInteger(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
Exception
public int encodeReal(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
Exception
public int encodeLength(int value, ElementInfo elementInfo, OutputStream stream) throws Exception
Exception
protected int encodeSequencePreamble(Object object, Field[] fields, ElementInfo elementInfo, OutputStream stream) throws Exception
Exception
public int encodeSequence(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
encodeSequence
in interface IASN1TypesEncoder
encodeSequence
in class Encoder<T>
Exception
protected int encodeChoicePreamble(Object object, OutputStream stream, int elementIndex, ElementInfo elementInfo) throws Exception
Exception
public int encodeChoice(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
encodeChoice
in interface IASN1TypesEncoder
encodeChoice
in class Encoder<T>
Exception
public int encodeEnumItem(Object enumConstant, Class enumClass, OutputStream stream, ElementInfo elementInfo) throws Exception
Exception
public int encodeBoolean(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
Exception
public int encodeAny(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
Exception
public int encodeOctetString(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
Exception
public int encodeBitString(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
Exception
public int encodeString(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
Exception
public int encodeSequenceOf(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
Exception
public int encodeNull(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
Exception
protected int encodeSet(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
Exception
public int encodeObjectIdentifier(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
Exception
Copyright © 2015 universAAL Consortium. All Rights Reserved.