|
||||||||||
| 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.DecoderMonitorAdapter
public class DecoderMonitorAdapter
A do nothing decoder monitor adapter. At a bare minimum warning, error and fatal exceptions are reported to the console when using this adapter to prevent exceptions from being completely ignored.
| Constructor Summary | |
|---|---|
DecoderMonitorAdapter()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DecoderMonitorAdapter()
| Method Detail |
|---|
public void error(StatefulDecoder decoder,
java.lang.Exception exception)
DecoderMonitor
error in interface DecoderMonitordecoder - the decoder that had the errorexception - the error information encapsulated in an exception
public void fatalError(StatefulDecoder decoder,
java.lang.Exception exception)
DecoderMonitor
fatalError in interface DecoderMonitordecoder - the decoder that had the failureexception - the warning information encapsulated in an exception
public void warning(StatefulDecoder decoder,
java.lang.Exception exception)
DecoderMonitor
warning in interface DecoderMonitordecoder - the decoder that had the errorexception - the warning information encapsulated in an exception
public void callbackOccured(StatefulDecoder decoder,
DecoderCallback cb,
java.lang.Object decoded)
DecoderMonitor
callbackOccured in interface DecoderMonitordecoder - the stateful decoder driving the callbackcb - the callback to call when the decoder has done its jobdecoded - the object that was decoded
public void callbackSet(StatefulDecoder decoder,
DecoderCallback oldcb,
DecoderCallback newcb)
DecoderMonitor
callbackSet 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 cleared
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||