Class AbstractReadOctetString<C extends Asn1Container>
java.lang.Object
org.apache.directory.api.asn1.ber.grammar.GrammarAction<C>
org.apache.directory.api.asn1.actions.AbstractReadOctetString<C>
- Type Parameters:
C- The container type
- All Implemented Interfaces:
Action<C>
The action used to read an OCTET STRING value
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from class GrammarAction
name -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new AbstractReadInteger action.AbstractReadOctetString(String name, boolean canBeNull) Instantiates a new AbstractReadInteger action. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidThe action to be executed.protected abstract voidsetOctetString(byte[] value, C container) Sets the OCTET STRING value to the appropriate field of ASN.1 object present in the containerMethods inherited from class GrammarAction
toString
-
Constructor Details
-
AbstractReadOctetString
Instantiates a new AbstractReadInteger action.- Parameters:
name- the action's name
-
AbstractReadOctetString
Instantiates a new AbstractReadInteger action.- Parameters:
name- the action's namecanBeNull- Tells if the byte array can be null or not
-
-
Method Details
-
setOctetString
Sets the OCTET STRING value to the appropriate field of ASN.1 object present in the container- Parameters:
value- the OCTET STRING valuecontainer- the ASN.1 object's container
-
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.
-