Interface TLVBerDecoderMBean
-
- All Known Implementing Classes:
Asn1Decoder
,CancelDecoder
,CertGenerationDecoder
,EndTransactionRequestDecoder
,EndTransactionResponseDecoder
,GracefulDisconnectDecoder
,GracefulShutdownDecoder
,PasswordModifyRequestDecoder
,PasswordModifyResponseDecoder
,StoredProcedureDecoder
,WhoAmIResponseDecoder
public interface TLVBerDecoderMBean
A MBean used to get stats on the decoding process.- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
allowIndefiniteLength()
Allow indefinite length.void
disallowIndefiniteLength()
Disallow indefinite length.int
getMaxLengthLength()
Get the actual maximum number of bytes that can be used to encode the Lengthint
getMaxTagLength()
Get the actual maximum number of bytes that can be used to encode the Tagboolean
isIndefiniteLengthAllowed()
Tell if indefinite length form could be used for Lengthvoid
setMaxLengthLength(int length)
Set the number of bytes that can be used to encode the Value length, including the first byte.void
setMaxTagLength(int length)
Set the maximum number of bytes that should be used to encode a Tag label, including the first byte.
-
-
-
Method Detail
-
setMaxLengthLength
void setMaxLengthLength(int length) throws DecoderException
Set the number of bytes that can be used to encode the Value length, including the first byte. Max is 127 if the Length use a definite form, default is 1- Parameters:
length
- the number of byte to use- Throws:
DecoderException
- Thrown if the indefinite length is allowed or if the length's Length is above 126 bytes
-
setMaxTagLength
void setMaxTagLength(int length)
Set the maximum number of bytes that should be used to encode a Tag label, including the first byte. Default is 1, no maximum- Parameters:
length
- The length to use
-
allowIndefiniteLength
void allowIndefiniteLength()
Allow indefinite length.
-
disallowIndefiniteLength
void disallowIndefiniteLength()
Disallow indefinite length.
-
getMaxLengthLength
int getMaxLengthLength()
Get the actual maximum number of bytes that can be used to encode the Length- Returns:
- The maximum bytes of the Length
-
getMaxTagLength
int getMaxTagLength()
Get the actual maximum number of bytes that can be used to encode the Tag- Returns:
- The maximum length of the Tag
-
isIndefiniteLengthAllowed
boolean isIndefiniteLengthAllowed()
Tell if indefinite length form could be used for Length- Returns:
true
if the Indefinite form is allowed
-
-