
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, isSelectedChoiceItempublic void encode(T object, OutputStream os) throws Exception
IEncoderpublic int encodeInteger(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
Exceptionpublic int encodeOctetString(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
Exceptionpublic int encodeBitString(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
Exceptionpublic int encodeSequence(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
encodeSequence in interface IASN1TypesEncoderencodeSequence in class Encoder<T>Exceptionpublic int encodeSequenceOf(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
Exceptionpublic int encodeChoice(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
encodeChoice in interface IASN1TypesEncoderencodeChoice in class Encoder<T>Exceptionpublic int encodeAny(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
Exceptionpublic int encodeEnumItem(Object enumConstant, Class enumClass, OutputStream stream, ElementInfo elementInfo) throws Exception
Exceptionpublic int encodeBoolean(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
Exceptionpublic int encodeObjectIdentifier(Object object, OutputStream steam, ElementInfo elementInfo) throws Exception
Exceptionpublic int encodeString(Object object, OutputStream steam, ElementInfo elementInfo) throws Exception
Exceptionpublic int encodeNull(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
Exceptionpublic int encodeReal(Object object, OutputStream steam, ElementInfo elementInfo) throws Exception
ExceptionCopyright © 2018 universAAL Consortium. All rights reserved.