org.apache.directory.shared.asn1.actions
Class AbstractReadOctetString<E extends Asn1Container>
java.lang.Object
org.apache.directory.shared.asn1.ber.grammar.GrammarAction<E>
org.apache.directory.shared.asn1.actions.AbstractReadOctetString<E>
- All Implemented Interfaces:
- Action<E>
public abstract class AbstractReadOctetString<E extends Asn1Container>
- extends GrammarAction<E>
The action used to read an OCTET STRING value
- Author:
- Apache Directory Project
| Fields inherited from class org.apache.directory.shared.asn1.ber.grammar.GrammarAction |
name |
|
Method Summary |
void |
action(E container)
The action to be executed. |
protected abstract void |
setOctetString(byte[] value,
E container)
set the OCTET STRING value to the appropriate field of ASN.1 object present in the container |
AbstractReadOctetString
public AbstractReadOctetString(String name)
- Instantiates a new AbstractReadInteger action.
AbstractReadOctetString
public AbstractReadOctetString(String name,
boolean canBeNull)
- Instantiates a new AbstractReadInteger action.
- Parameters:
name - The log messagecanBeNull - Tells if the byte array can be null or not
setOctetString
protected abstract void setOctetString(byte[] value,
E container)
- set 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
public final void action(E container)
throws DecoderException
- The action to be executed.
- Parameters:
container - The container which stores the current data
- Throws:
DecoderException - Thrown if something went wrong.
Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.