public class EncoderMDER<T> extends Encoder<T>
Constructor and Description |
---|
EncoderMDER() |
Modifier and Type | Method and Description |
---|---|
void |
encode(T object,
OutputStream os)
Encode object
|
int |
encodeAny(Object object,
OutputStream stream,
ElementInfo elementInfo)
Two fields: - Length in octets of the next field (INT_U16) - Encoding of
selected value (m octets)
|
int |
encodeBitString(Object object,
OutputStream stream,
ElementInfo elementInfo)
Three types of BitString: - 8 bits - 16 bits - 32 bits We only have to
extract the length in bytes of the BitString
|
int |
encodeBoolean(Object object,
OutputStream stream,
ElementInfo elementInfo) |
int |
encodeChoice(Object object,
OutputStream stream,
ElementInfo elementInfo) |
int |
encodeEnumItem(Object enumConstant,
Class enumClass,
OutputStream stream,
ElementInfo elementInfo) |
int |
encodeInteger(Object object,
OutputStream stream,
ElementInfo elementInfo) |
int |
encodeNull(Object object,
OutputStream stream,
ElementInfo elementInfo) |
int |
encodeObjectIdentifier(Object object,
OutputStream steam,
ElementInfo elementInfo) |
int |
encodeOctetString(Object object,
OutputStream stream,
ElementInfo elementInfo)
Two types of OctetString: - fixed-length (size constrained) - variable
length (has an extra U-16 Integer as a length field) and then the octets.
|
int |
encodeReal(Object object,
OutputStream steam,
ElementInfo elementInfo) |
int |
encodeSequence(Object object,
OutputStream stream,
ElementInfo elementInfo) |
int |
encodeSequenceOf(Object object,
OutputStream stream,
ElementInfo elementInfo)
Group of elements of the same type.
|
int |
encodeString(Object object,
OutputStream steam,
ElementInfo elementInfo) |
encodeBoxedType, encodeClassType, encodeElement, encodeEnum, encodeJavaElement, encodePreparedElement, encodeSequenceField, getChoiceSelectedElement, invokeGetterMethodForField, invokeSelectedMethodForField, isSelectedChoiceItem
public void encode(T object, OutputStream os) throws Exception
IEncoder
public int encodeInteger(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 encodeSequence(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
encodeSequence
in interface IASN1TypesEncoder
encodeSequence
in class Encoder<T>
Exception
public int encodeSequenceOf(Object object, OutputStream stream, 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 encodeAny(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
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 encodeObjectIdentifier(Object object, OutputStream steam, ElementInfo elementInfo) throws Exception
Exception
public int encodeString(Object object, OutputStream steam, ElementInfo elementInfo) throws Exception
Exception
public int encodeNull(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
Exception
public int encodeReal(Object object, OutputStream steam, ElementInfo elementInfo) throws Exception
Exception
Copyright © 2018 universAAL Consortium. All rights reserved.