|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.universAAL.lddi.lib.ieeex73std.org.bn.coders.Encoder<T>
org.universAAL.lddi.lib.ieeex73std.mder.EncoderMDER<T>
public class EncoderMDER<T>
Constructor Summary | |
---|---|
EncoderMDER()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class org.universAAL.lddi.lib.ieeex73std.org.bn.coders.Encoder |
---|
encodeBoxedType, encodeClassType, encodeElement, encodeEnum, encodeJavaElement, encodePreparedElement, encodeSequenceField, getChoiceSelectedElement, invokeGetterMethodForField, invokeSelectedMethodForField, isSelectedChoiceItem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EncoderMDER()
Method Detail |
---|
public void encode(T object, OutputStream os) throws Exception
IEncoder
encode
in interface IEncoder<T>
encode
in class Encoder<T>
object
- User objectos
- Stream to encoding
Exception
CoderFactory
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |