|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DecoderMonitor
Monitors decoder activity. This class borrowed some from the
org.xml.sax.ErrorHandler
interface and its documentation. A monitor is a generalized callback for any
sort of activity used for tracking both successes and failures. So you'll
realize similarities between monitors and callbacks especially where the
callbackOccurred() method is concerned.
| Method Summary | |
|---|---|
void |
callbackOccured(StatefulDecoder decoder,
DecoderCallback cb,
java.lang.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,
java.lang.Exception exception)
Receive notification of a recoverable error. |
void |
fatalError(StatefulDecoder decoder,
java.lang.Exception exception)
Receive notification of a non-recoverable error. |
void |
warning(StatefulDecoder decoder,
java.lang.Exception exception)
Receive notification of a warning. |
| Method Detail |
|---|
void error(StatefulDecoder decoder,
java.lang.Exception exception)
decoder - the decoder that had the errorexception - the error information encapsulated in an exception
void fatalError(StatefulDecoder decoder,
java.lang.Exception exception)
decoder - the decoder that had the failureexception - the warning information encapsulated in an exception
void warning(StatefulDecoder decoder,
java.lang.Exception exception)
decoder - the decoder that had the errorexception - the warning information encapsulated in an exception
void callbackOccured(StatefulDecoder decoder,
DecoderCallback cb,
java.lang.Object decoded)
decoder - the stateful decoder driving the callbackcb - the callback to call when the decoder has done its jobdecoded - the object that was decoded
void callbackSet(StatefulDecoder decoder,
DecoderCallback oldcb,
DecoderCallback newcb)
decoder - 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 cleared
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||