public interface IAsn1Container
| Modifier and Type | Method and Description |
|---|---|
TLV |
getCurrentTLV()
Get the currentTLV
|
int |
getDecodeBytes() |
IGrammar |
getGrammar()
Get the grammar
|
int |
getMaxPDUSize() |
int |
getNewTlvId()
Get a new TLV id
|
TLV |
getParentTLV() |
int |
getState()
Get the current grammar state
|
IStates |
getStates() |
int |
getTlvId()
Get the current TLV id
|
int |
getTransition()
Get the transition
|
void |
grammarEndAllowed(boolean grammarEndAllowed)
Set the flag to allow a end transition
|
void |
incrementDecodeBytes(int nb)
Increment the decodedBytes by the latest received buffer's size.
|
boolean |
isGrammarEndAllowed()
Check that we can have a end state after this transition
|
void |
setCurrentTLV(TLV tlv)
Set the current TLV
|
void |
setMaxPDUSize(int maxPDUSize)
Set the maximum PDU size.
|
void |
setParentTLV(TLV parentTLV)
Set the parent TLV
|
void |
setState(int state)
Set the new current state
|
void |
setTransition(int transition)
Update the transition from a state to another
|
int getState()
void setState(int state)
state - The new statevoid setCurrentTLV(TLV tlv)
tlv - The current TLVTLV getCurrentTLV()
IGrammar getGrammar()
int getTransition()
void setTransition(int transition)
transition - The transition to setIStates getStates()
TLV getParentTLV()
void setParentTLV(TLV parentTLV)
parentTLV - The new parent TLVboolean isGrammarEndAllowed()
void grammarEndAllowed(boolean grammarEndAllowed)
grammarEndAllowed - true or false, depending on the next transition
being an end or not.int getNewTlvId()
int getTlvId()
int getDecodeBytes()
void incrementDecodeBytes(int nb)
nb - The buffer size.int getMaxPDUSize()
void setMaxPDUSize(int maxPDUSize)
maxPDUSize - The maximum PDU size (if negative or null, will be
replaced by the max integer value)Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.