public class DecoderStack extends AbstractStatefulDecoder
Constructor and Description |
---|
DecoderStack()
Creates an empty stack of chained decoders.
|
Modifier and Type | Method and Description |
---|---|
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.
|
decodeOccurred, getDecoderMonitor, setCallback, setDecoderMonitor
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 dataDecoderException
- if the encoded element can't be decodedpublic boolean isEmpty()
public void clear()
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.