|
|||||||||||
| 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.AbstractStatefulDecoder
Convenience class to not have to reimplement the two setter methods everytime one starts a new decoder.
| Field Summary | |
private DecoderCallback |
cb
this decoder's callback |
private DecoderMonitor |
monitor
this decoder's monitor |
| Constructor Summary | |
AbstractStatefulDecoder()
Creates a stateful decoder where the callback and monitor must be set. |
|
AbstractStatefulDecoder(DecoderCallback cb)
Creates a stateful decoder with a callback. |
|
AbstractStatefulDecoder(DecoderCallback cb,
DecoderMonitor monitor)
Creates a stateful decoder. |
|
AbstractStatefulDecoder(DecoderMonitor monitor)
Creates a stateful decoder with a monitor but no callback. |
|
| Method Summary | |
protected void |
decodeOccurred(java.lang.Object decoded)
Notifies via the callback if one has been set that this decoder has decoded a unit of encoded data. |
protected DecoderMonitor |
getDecoderMonitor()
Gets the decoder's monitor. |
void |
setCallback(DecoderCallback cb)
Sets the callback for this StatefulDecoder. |
void |
setDecoderMonitor(DecoderMonitor monitor)
Monitors all kinds of events that occur during processing. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.directory.shared.asn1.codec.stateful.StatefulDecoder |
decode |
| Field Detail |
private DecoderCallback cb
private DecoderMonitor monitor
| Constructor Detail |
public AbstractStatefulDecoder()
public AbstractStatefulDecoder(DecoderCallback cb)
cb - the callback to use for this decoderpublic AbstractStatefulDecoder(DecoderMonitor monitor)
monitor - the monitor to use for this decoder
public AbstractStatefulDecoder(DecoderCallback cb,
DecoderMonitor monitor)
cb - the callback to use for this decodermonitor - the monitor to use for this decoder| Method Detail |
public void setCallback(DecoderCallback cb)
StatefulDecoder
setCallback in interface StatefulDecodercb - the callback to inform of a complete decode operationpublic void setDecoderMonitor(DecoderMonitor monitor)
StatefulDecoder
setDecoderMonitor in interface StatefulDecodermonitor - to set for this StatefulDecoderprotected void decodeOccurred(java.lang.Object decoded)
decoded - the decoded byproduct.protected DecoderMonitor getDecoderMonitor()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||