|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.asn1.codec.stateful.AbstractStatefulDecoder
org.apache.directory.shared.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.
| 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(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.directory.shared.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 |
| 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(Object encoded)
throws DecoderException
encoded - an object representing a piece of encoded data
DecoderException - if the encoded element can't be decodedpublic boolean isEmpty()
public void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||