public abstract class AbstractReadOctetString<C extends Asn1Container> extends GrammarAction<C>
| Modifier and Type | Field and Description |
|---|---|
private boolean |
canBeNull
the acceptable maximum value for the expected value to be parsed
|
private static org.slf4j.Logger |
LOG
The logger
|
name| Constructor and Description |
|---|
AbstractReadOctetString(java.lang.String name)
Instantiates a new AbstractReadInteger action.
|
AbstractReadOctetString(java.lang.String name,
boolean canBeNull)
Instantiates a new AbstractReadInteger action.
|
| Modifier and Type | Method and Description |
|---|---|
void |
action(C container)
The action to be executed.
|
protected abstract void |
setOctetString(byte[] value,
C container)
Sets the OCTET STRING value to the appropriate field of ASN.1 object present in the container
|
toStringprivate static final org.slf4j.Logger LOG
private boolean canBeNull
public AbstractReadOctetString(java.lang.String name)
name - the action's namepublic AbstractReadOctetString(java.lang.String name,
boolean canBeNull)
name - the action's namecanBeNull - Tells if the byte array can be null or notprotected abstract void setOctetString(byte[] value,
C container)
value - the OCTET STRING valuecontainer - the ASN.1 object's containerpublic final void action(C container) throws DecoderException
container - The container which stores the current dataDecoderException - Thrown if something went wrong.