C - The container typepublic 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(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
|
toStringprivate static final org.slf4j.Logger LOG
private boolean canBeNull
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 org.apache.directory.api.asn1.DecoderException
container - The container which stores the current dataorg.apache.directory.api.asn1.DecoderException - Thrown if something went wrong.Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.