|
||||||||||
| 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.AbstractStatefulEncoder
public abstract class AbstractStatefulEncoder
Convenience class to not have to reimplement the two setter methods everytime one starts a new encoder.
| Constructor Summary | |
|---|---|
AbstractStatefulEncoder()
Creates a stateful encoder where the callback and monitor must be set. |
|
AbstractStatefulEncoder(EncoderCallback cb)
Creates a stateful encoder with a callback. |
|
AbstractStatefulEncoder(EncoderCallback cb,
EncoderMonitor monitor)
Creates a stateful encoder. |
|
AbstractStatefulEncoder(EncoderMonitor monitor)
Creates a stateful encoder with a monitor but no callback. |
|
| Method Summary | |
|---|---|
protected void |
encodeOccurred(java.lang.Object encoded)
Notifies via the callback if one has been set that this encoder has encoded a unit of encoded data. |
protected EncoderMonitor |
getEncoderMonitor()
Gets the encoder's monitor. |
void |
setCallback(EncoderCallback cb)
Sets the callback of the underlying implementation. |
void |
setEncoderMonitor(EncoderMonitor monitor)
Sets the monitor of the underlying implementation. |
| 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.StatefulEncoder |
|---|
encode |
| Constructor Detail |
|---|
public AbstractStatefulEncoder()
public AbstractStatefulEncoder(EncoderCallback cb)
cb - the callback to use for this encoderpublic AbstractStatefulEncoder(EncoderMonitor monitor)
monitor - the monitor to use for this encoder
public AbstractStatefulEncoder(EncoderCallback cb,
EncoderMonitor monitor)
cb - the callback to use for this encodermonitor - the monitor to use for this encoder| Method Detail |
|---|
public void setCallback(EncoderCallback cb)
StatefulEncoder
setCallback in interface StatefulEncodercb - the callback to set on the underlying provider specific encoderpublic void setEncoderMonitor(EncoderMonitor monitor)
StatefulEncoder
setEncoderMonitor in interface StatefulEncodermonitor - the monitor to set on the underlying implementationprotected void encodeOccurred(java.lang.Object encoded)
encoded - the encoded byproduct.protected EncoderMonitor getEncoderMonitor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||