public final class Asn1Decoder extends Object implements TLVBerDecoderMBean
Modifier and Type | Method and Description |
---|---|
static void |
decode(ByteBuffer stream,
Asn1Container container)
The decoder main function.
|
int |
getMaxLengthLength()
Get the actual maximum number of bytes that can be used to encode the
Length
|
int |
getMaxTagLength()
Get the actual maximum number of bytes that can be used to encode the Tag
|
boolean |
isIndefiniteLengthAllowed()
Tell if indefinite length form could be used for Length
|
public static void decode(ByteBuffer stream, Asn1Container container) throws DecoderException
stream
- The ByteBuffer containing the PDU to decodecontainer
- The container that store the state, the result
and other elements.DecoderException
- Thrown if anything went wrong!public int getMaxLengthLength()
getMaxLengthLength
in interface TLVBerDecoderMBean
public int getMaxTagLength()
getMaxTagLength
in interface TLVBerDecoderMBean
public boolean isIndefiniteLengthAllowed()
isIndefiniteLengthAllowed
in interface TLVBerDecoderMBean
true
if the Indefinite form is allowedCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.