Class AbstractReadBitString<C extends Asn1Container>
java.lang.Object
org.apache.directory.api.asn1.ber.grammar.GrammarAction<C>
org.apache.directory.api.asn1.actions.AbstractReadBitString<C>
- Type Parameters:
C- The container type
- All Implemented Interfaces:
Action<C>
The action used read a BITSTRING from a TLV
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from class GrammarAction
name -
Constructor Summary
ConstructorsConstructorDescriptionAbstractReadBitString(String name) Instantiates a new AbstractReadByteArray action. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidThe action to be executed.protected abstract voidsetBitString(byte[] data, C container) Gives a byte array to be set to the appropriate field of the ASN.1 object present in the containerMethods inherited from class GrammarAction
toString
-
Constructor Details
-
AbstractReadBitString
Instantiates a new AbstractReadByteArray action.- Parameters:
name- the action's name
-
-
Method Details
-
setBitString
Gives a byte array to be set to the appropriate field of the ASN.1 object present in the container- Parameters:
data- the data of the read TLV present in byte array formatcontainer- the container holding the ASN.1 object
-
action
The action to be executed.- Parameters:
container- The container which stores the current data- Throws:
org.apache.directory.api.asn1.DecoderException- Thrown if something went wrong.
-