|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--step.encoding.Encoder | +--step.encoding.Strategy
An encoder that exploits patterns or characteristics of a data sequence.
Field Summary | |
protected Encoder |
_baseEncoder
|
Constructor Summary | |
protected |
Strategy(Encoder baseEncoder,
String strategyName)
Create a strategy with the given base encoder and strategy name. |
Method Summary | |
protected StepObject |
baseDecode(DecodeContext context)
Defer to the underlying base encoder to decode a value. |
protected void |
baseEncode(StepObject o,
EncodeContext context)
Defer to the underlying base encoder to encode a value. |
protected void |
eventMessage(String msg)
Send a message to this encoder. |
Methods inherited from class step.encoding.Encoder |
decode, dump, encode, getFactory, getName, indent, makeFieldName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Encoder _baseEncoder
Constructor Detail |
protected Strategy(Encoder baseEncoder, String strategyName)
Method Detail |
protected void baseEncode(StepObject o, EncodeContext context) throws EncoderException, IOException
EncoderException
IOException
protected StepObject baseDecode(DecodeContext context) throws EncoderException, IOException
EncoderException
IOException
protected void eventMessage(String msg)
The default behavior is to forward the message to the base encoder.
eventMessage
in class Encoder
EncoderMessageEvent
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |