|
||||||||||
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, javax.naming.NamingException
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!
javax.naming.NamingException
public int getMaxLengthLength()
getMaxLengthLength
in interface ITLVBerDecoderMBean
public int getMaxTagLength()
getMaxTagLength
in interface ITLVBerDecoderMBean
public void disallowIndefiniteLength()
disallowIndefiniteLength
in interface ITLVBerDecoderMBean
public void allowIndefiniteLength()
allowIndefiniteLength
in interface ITLVBerDecoderMBean
public boolean isIndefiniteLengthAllowed()
isIndefiniteLengthAllowed
in interface ITLVBerDecoderMBean
true
if the current decoder support
indefinite lengthpublic void setMaxLengthLength(int maxLengthLength) throws DecoderException
setMaxLengthLength
in interface ITLVBerDecoderMBean
maxLengthLength
- 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 ITLVBerDecoderMBean
maxTagLength
- The tagLength to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |