public class DecoderMonitorAdapter extends Object implements DecoderMonitor
| Constructor and Description |
|---|
DecoderMonitorAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
callbackOccured(StatefulDecoder decoder,
DecoderCallback cb,
Object decoded)
Monitors callbacks that deliver a fully decoded object.
|
void |
callbackSet(StatefulDecoder decoder,
DecoderCallback oldcb,
DecoderCallback newcb)
Monitors changes to the callback.
|
void |
error(StatefulDecoder decoder,
Exception exception)
Receive notification of a recoverable error.
|
void |
fatalError(StatefulDecoder decoder,
Exception exception)
Receive notification of a non-recoverable error.
|
void |
warning(StatefulDecoder decoder,
Exception exception)
Receive notification of a warning.
|
public void error(StatefulDecoder decoder, Exception exception)
DecoderMonitorerror in interface DecoderMonitordecoder - the decoder that had the errorexception - the error information encapsulated in an exceptionpublic void fatalError(StatefulDecoder decoder, Exception exception)
DecoderMonitorfatalError in interface DecoderMonitordecoder - the decoder that had the failureexception - the warning information encapsulated in an exceptionpublic void warning(StatefulDecoder decoder, Exception exception)
DecoderMonitorwarning in interface DecoderMonitordecoder - the decoder that had the errorexception - the warning information encapsulated in an exceptionpublic void callbackOccured(StatefulDecoder decoder, DecoderCallback cb, Object decoded)
DecoderMonitorcallbackOccured in interface DecoderMonitordecoder - the stateful decoder driving the callbackcb - the callback to call when the decoder has done its jobdecoded - the object that was decodedpublic void callbackSet(StatefulDecoder decoder, DecoderCallback oldcb, DecoderCallback newcb)
DecoderMonitorcallbackSet in interface DecoderMonitordecoder - the decoder whose callback was setoldcb - the unset old callback, or null if none was setnewcb - the newly set callback, or null if callback is clearedCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.