public class Asn1Any extends AbstractAsn1Type<Asn1Type> implements Asn1Dumpable
Asn1Type.EncodingTypebodyLength, outerEncodeable| Modifier and Type | Method and Description |
|---|---|
void |
decode(Asn1ParseResult parseResult) |
void |
decode(ByteBuffer content)
Decode the content bytes into this type.
|
protected void |
decodeBody(Asn1ParseResult parseResult) |
void |
dumpWith(Asn1Dumper dumper,
int indents) |
void |
encode(ByteBuffer buffer)
Encode the type, by recursively, using the provided buffer.
|
protected int |
encodingBodyLength() |
int |
encodingLength()
Get length of encoding bytes by just calculating without real encoding.
|
Asn1ParseResult |
getParseResult() |
protected <T extends Asn1Type> |
getValueAs(Class<T> t) |
void |
setDecodeInfo(Asn1FieldInfo decodeInfo) |
void |
setValueType(Class<? extends Asn1Type> valueType) |
Tag |
tag() |
getValue, setValue, toStringdecode, encode, encodeBody, encodingHeaderLength, getBodyLength, getHeaderLength, isBER, isCER, isDefinitiveLength, isDER, isImplicit, isPrimitive, resetBodyLength, taggedDecode, taggedDecode, taggedDecode, taggedEncode, taggedEncode, taggedEncodingLength, useBER, useCER, useDefinitiveLength, useDER, useImplicit, usePrimitiveisAppSpecific, isCollection, isContextSpecific, isEOC, isNull, isSimple, isTagSpecific, isUniversal, simpleInfo, tagFlags, tagNopublic Asn1Any()
public Asn1Any(Asn1Type anyValue)
public Tag tag()
tag in interface Asn1Typetag in class Asn1Objectpublic void setDecodeInfo(Asn1FieldInfo decodeInfo)
public Asn1ParseResult getParseResult()
public void encode(ByteBuffer buffer) throws IOException
Asn1Typeencode in interface Asn1Typeencode in class Asn1Encodeablebuffer - The byte bufferIOExceptionpublic int encodingLength()
Asn1TypeencodingLength in interface Asn1TypeencodingLength in class Asn1Encodeableprotected int encodingBodyLength()
encodingBodyLength in class Asn1Encodeablepublic void decode(ByteBuffer content) throws IOException
Asn1Typedecode in interface Asn1Typedecode in class Asn1Encodeablecontent - The content bytesIOException - epublic void decode(Asn1ParseResult parseResult) throws IOException
decode in class Asn1EncodeableIOExceptionprotected void decodeBody(Asn1ParseResult parseResult) throws IOException
decodeBody in class Asn1EncodeableIOExceptionpublic void dumpWith(Asn1Dumper dumper, int indents)
dumpWith in interface Asn1DumpableCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.