public class BEREncoder<T> extends Encoder<T>
Constructor and Description |
---|
BEREncoder() |
Modifier and Type | Method and Description |
---|---|
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) |
int |
encodeEnumItem(Object enumConstant,
Class enumClass,
OutputStream stream,
ElementInfo elementInfo) |
protected int |
encodeHeader(DecodedObject<Integer> tagValue,
int contentLen,
OutputStream stream) |
int |
encodeInteger(Object object,
OutputStream stream,
ElementInfo elementInfo) |
int |
encodeIntegerValue(long value,
OutputStream stream) |
protected int |
encodeLength(int length,
OutputStream stream) |
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) |
int |
encodeSequence(Object object,
OutputStream stream,
ElementInfo elementInfo) |
int |
encodeSequenceOf(Object object,
OutputStream stream,
ElementInfo elementInfo) |
int |
encodeString(Object object,
OutputStream stream,
ElementInfo elementInfo) |
protected int |
encodeTag(DecodedObject<Integer> tagValue,
OutputStream stream) |
encodeBoxedType, encodeClassType, encodeElement, encodeEnum, encodeJavaElement, encodePreparedElement, encodeSequenceField, getChoiceSelectedElement, invokeGetterMethodForField, invokeSelectedMethodForField, isSelectedChoiceItem
public void encode(T object, OutputStream stream) throws Exception
IEncoder
public int encodeSequence(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception
encodeSequence
in interface IASN1TypesEncoder
encodeSequence
in class Encoder<T>
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 encodeIntegerValue(long value, OutputStream 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 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
protected int encodeHeader(DecodedObject<Integer> tagValue, int contentLen, OutputStream stream) throws Exception
Exception
protected int encodeTag(DecodedObject<Integer> tagValue, OutputStream stream) throws Exception
Exception
protected int encodeLength(int length, OutputStream stream) throws IOException
IOException
public int encodeNull(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.