public interface TLVBerDecoderMBean
Modifier and Type | Method and 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
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 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.
|
void setMaxLengthLength(int length) throws DecoderException
length
- the number of byte to useDecoderException
- Thrown if the indefinite length is
allowed or if the length's Length is above 126 bytesvoid setMaxTagLength(int length)
length
- The length to usevoid allowIndefiniteLength()
void disallowIndefiniteLength()
int getMaxLengthLength()
int getMaxTagLength()
boolean isIndefiniteLengthAllowed()
true
if the Indefinite form is allowedCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.