|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StatefulDecoder
A decoder which decodes encoded data as it arrives in peices while
maintaining the state of the decode operation between the arrival of encoded
chunks. As chunks of encoded data arrive the decoder processes each chunk of
encoded data and maintains decoding state in between arrivals: it is hence
stateful and should be associated with a single channel or encoded data
producer. When an arbitrary unit of encoding, to be determined by the
encoding scheme, has been decoded, the decode()
method of the
registered DecoderCallback is called.
Method Summary | |
---|---|
void |
decode(Object encoded)
Decodes a peice of encoded data. |
void |
setCallback(DecoderCallback cb)
Sets the callback for this StatefulDecoder. |
void |
setDecoderMonitor(DecoderMonitor monitor)
Monitors all kinds of events that occur during processing. |
Method Detail |
---|
void decode(Object encoded) throws DecoderException
encoded
- an object representing a peice of encoded data
DecoderException
void setCallback(DecoderCallback cb)
cb
- the callback to inform of a complete decode operationvoid setDecoderMonitor(DecoderMonitor monitor)
monitor
- to set for this StatefulDecoder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |