|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.asn1.ber.Asn1Decoder
public class Asn1Decoder
A BER TLV Tag component decoder. This decoder instantiate a Tag. The tag won't be implementations should not copy the handle to the Tag object delivered but should copy the data if they need it over the long term.
| Constructor Summary | |
|---|---|
Asn1Decoder()
A public constructor of an Asn1 Decoder. |
|
| Method Summary | |
|---|---|
void |
allowIndefiniteLength()
Allow indefinite length. |
void |
decode(ByteBuffer stream,
Asn1Container container)
The decoder main function. |
void |
disallowIndefiniteLength()
Disallow indefinite length. |
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 |
void |
setMaxLengthLength(int maxLengthLength)
Set the number of bytes that can be used to encode the Value length, including the first byte. |
void |
setMaxTagLength(int maxTagLength)
Set the maximum number of bytes that should be used to encode a Tag label, including the first byte. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Asn1Decoder()
| Method Detail |
|---|
public void decode(ByteBuffer stream,
Asn1Container container)
throws org.apache.directory.api.asn1.DecoderException
stream - The ByteBuffer containing the PDU to decodecontainer - The container that store the state, the result
and other elements.
org.apache.directory.api.asn1.DecoderException - Thrown if anything went wrong!public int getMaxLengthLength()
getMaxLengthLength in interface TLVBerDecoderMBeanpublic int getMaxTagLength()
getMaxTagLength in interface TLVBerDecoderMBeanpublic void disallowIndefiniteLength()
disallowIndefiniteLength in interface TLVBerDecoderMBeanpublic void allowIndefiniteLength()
allowIndefiniteLength in interface TLVBerDecoderMBeanpublic boolean isIndefiniteLengthAllowed()
isIndefiniteLengthAllowed in interface TLVBerDecoderMBeantrue if the Indefinite form is allowed
public void setMaxLengthLength(int maxLengthLength)
throws org.apache.directory.api.asn1.DecoderException
setMaxLengthLength in interface TLVBerDecoderMBeanmaxLengthLength - the number of byte to use
org.apache.directory.api.asn1.DecoderException - Thrown if the indefinite length is
allowed or if the length's Length is above 126 bytespublic void setMaxTagLength(int maxTagLength)
setMaxTagLength in interface TLVBerDecoderMBeanmaxTagLength - The length to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||