public abstract class AbstractReadOctetString<C extends Asn1Container> extends GrammarAction<C>
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(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
|
toString
public AbstractReadOctetString(String name)
name
- the action's namepublic AbstractReadOctetString(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.Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.