public abstract class AbstractReadOctetString<E extends Asn1Container> extends GrammarAction<E>
name
Constructor and Description |
---|
AbstractReadOctetString(String name)
Instantiates a new AbstractReadInteger action.
|
AbstractReadOctetString(String name,
boolean canBeNull)
Instantiates a new AbstractReadInteger action.
|
Modifier and Type | Method and Description |
---|---|
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
|
toString
public AbstractReadOctetString(String name)
public AbstractReadOctetString(String name, boolean canBeNull)
name
- The log messagecanBeNull
- Tells if the byte array can be null or notprotected abstract void setOctetString(byte[] value, E container)
value
- the OCTET STRING valuecontainer
- the ASN.1 object's containerpublic final void action(E container) throws DecoderException
container
- The container which stores the current dataDecoderException
- Thrown if something went wrong.Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.