| Package | Description |
|---|---|
| org.apache.directory.api.asn1.actions | |
| org.apache.directory.api.asn1.ber | |
| org.apache.directory.api.asn1.ber.grammar |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractReadBitString<C extends Asn1Container>
The action used read a BITSTRING from a TLV
|
class |
AbstractReadInteger<E extends Asn1Container>
The action used to read an integer value
|
class |
AbstractReadOctetString<C extends Asn1Container>
The action used to read an OCTET STRING value
|
class |
CheckNotNullLength<C extends Asn1Container>
An action that checks the length is not null
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractContainer
This class is the abstract container used to store the current state of a PDU
being decoded.
|
| Modifier and Type | Field and Description |
|---|---|
private Grammar<? extends Asn1Container> |
AbstractContainer.grammar
All the possible grammars
|
| Modifier and Type | Method and Description |
|---|---|
Grammar<? extends Asn1Container> |
AbstractContainer.getGrammar()
Gets the grammar
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Asn1Decoder.decode(ByteBuffer stream,
Asn1Container container)
The decoder main function.
|
private static void |
Asn1Decoder.dumpTLVTree(Asn1Container container)
Dump the current TLV tree
|
private static boolean |
Asn1Decoder.isTLVDecoded(Asn1Container container)
Check if the TLV tree is fully decoded
|
private static void |
Asn1Decoder.treatLengthEndState(Asn1Container container)
The Length is fully decoded.
|
private static boolean |
Asn1Decoder.treatLengthPendingState(ByteBuffer stream,
Asn1Container container)
This function is called when a Length is in the process of being decoded,
but the lack of bytes in the buffer stopped the process.
|
private static boolean |
Asn1Decoder.treatLengthStartState(ByteBuffer stream,
Asn1Container container)
Treat the Length start.
|
private static boolean |
Asn1Decoder.treatTagStartState(ByteBuffer stream,
Asn1Container container)
Treat the start of a TLV.
|
private static boolean |
Asn1Decoder.treatTLVDoneState(ByteBuffer stream,
Asn1Container container)
When the TLV has been fully decoded, we have to execute the associated
action and switch to the next TLV, which will start with a Tag.
|
private static boolean |
Asn1Decoder.treatValuePendingState(ByteBuffer stream,
Asn1Container container)
Treat a pending Value when we get more bytes in the buffer.
|
private static boolean |
Asn1Decoder.treatValueStartState(ByteBuffer stream,
Asn1Container container)
Treat the Value part.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractContainer.setGrammar(Grammar<? extends Asn1Container> grammar)
Sets the grammar
|
void |
Asn1Container.setGrammar(Grammar<? extends Asn1Container> grammar)
Sets the grammar
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractGrammar<C extends Asn1Container>
The abstract Grammar which is the Mother of all the grammars.
|
interface |
Action<C extends Asn1Container>
Action interface just contains the method 'action' which must be implemented
in all the implementing classes.
|
interface |
Grammar<C extends Asn1Container>
The interface which expose common behavior of a Grammar implementer.
|
class |
GrammarAction<C extends Asn1Container>
A top level grammar class that store meta informations about the actions.
|
class |
GrammarTransition<C extends Asn1Container>
Define a transition between two states of a grammar.
|
Copyright © 2003–2019 The Apache Software Foundation. All rights reserved.