org.apache.directory.shared.asn1.ber.tlv
Interface ITLVBerDecoderMBean

All Known Implementing Classes:
Asn1Decoder, EntryChangeControlDecoder, GracefulDisconnectDecoder, GracefulShutdownDecoder, LdapDecoder, PSearchControlDecoder, SubEntryControlDecoder

public interface ITLVBerDecoderMBean

Author:
Apache Directory Project

Method Summary
 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.
 

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

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


Copyright © 2004-2012. All Rights Reserved.