|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.asn1.ber.Asn1Decoder
public class Asn1Decoder
A BER TLV Tag component decoder. This decoder instanciate 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(java.nio.ByteBuffer stream,
IAsn1Container container)
The decoder main function. |
void |
disallowIndefiniteLength()
Disallow indefinite length. |
int |
getMaxLengthLength()
Get the length's Length. |
int |
getMaxTagLength()
Get the maximum Tag's length |
boolean |
isIndefiniteLengthAllowed()
Tells if indefinite length form could be used for Length |
void |
setMaxLengthLength(int maxLengthLength)
Set the maximul length for a Length |
void |
setMaxTagLength(int maxTagLength)
Set the maximum Tag length |
| 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(java.nio.ByteBuffer stream,
IAsn1Container 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 ITLVBerDecoderMBeanpublic int getMaxTagLength()
getMaxTagLength in interface ITLVBerDecoderMBeanpublic void disallowIndefiniteLength()
disallowIndefiniteLength in interface ITLVBerDecoderMBeanpublic void allowIndefiniteLength()
allowIndefiniteLength in interface ITLVBerDecoderMBeanpublic boolean isIndefiniteLengthAllowed()
isIndefiniteLengthAllowed in interface ITLVBerDecoderMBeantrue if the current decoder support
indefinite length
public void setMaxLengthLength(int maxLengthLength)
throws DecoderException
setMaxLengthLength in interface ITLVBerDecoderMBeanmaxLengthLength - The lengthLength to set.
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 ITLVBerDecoderMBeanmaxTagLength - The tagLength to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||