|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.asn1.codec.stateful.AbstractStatefulDecoder
org.apache.asn1.codec.stateful.DecoderStack
public class DecoderStack
A stack of decoders used for the additive application of multiple decoders forming a linear staged decoder pipeline.
Nested Class Summary | |
---|---|
(package private) class |
DecoderStack.ChainingCallback
A callback used to chain decoders. |
Field Summary | |
---|---|
private java.util.Stack |
decoders
a stack of StatefulDecoders |
private DecoderCallback |
topcb
the top decoder callback which calls this decoders callback |
Constructor Summary | |
---|---|
DecoderStack()
Creates an empty stack of chained decoders. |
Method Summary | |
---|---|
void |
clear()
Clears the stack popping all decoders setting their callbacks to null. |
void |
decode(java.lang.Object encoded)
Decodes an encoded object by calling decode on the decoder at the bottom of the stack. |
boolean |
isEmpty()
Gets whether or not this stack is empty. |
StatefulDecoder |
pop()
Pops the terminal decoder off of this DecoderStack. |
void |
push(StatefulDecoder decoder)
Pushs a new terminal decoder onto the top of this DecoderStack. |
Methods inherited from class org.apache.asn1.codec.stateful.AbstractStatefulDecoder |
---|
decodeOccurred, getDecoderMonitor, setCallback, setDecoderMonitor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final DecoderCallback topcb
private java.util.Stack decoders
Constructor Detail |
---|
public DecoderStack()
Method Detail |
---|
public void push(StatefulDecoder decoder)
decoder
- the terminal decoder to push onto this stackpublic StatefulDecoder pop()
public void decode(java.lang.Object encoded) throws DecoderException
encoded
- an object representing a peice of encoded data
DecoderException
decode(java.lang.Object)
public boolean isEmpty()
public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |