de.huxhorn.sulky.codec.streaming
Class DelegatingStreamingCodecBase<E>
java.lang.Object
de.huxhorn.sulky.codec.streaming.DelegatingStreamingCodecBase<E>
- All Implemented Interfaces:
- StreamingCodec<E>, StreamingDecoder<E>, StreamingEncoder<E>
public class DelegatingStreamingCodecBase<E>
- extends java.lang.Object
- implements StreamingCodec<E>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegatingStreamingCodecBase
protected DelegatingStreamingCodecBase()
DelegatingStreamingCodecBase
protected DelegatingStreamingCodecBase(StreamingEncoder<E> encoder,
StreamingDecoder<E> decoder)
getEncoder
protected StreamingEncoder<E> getEncoder()
setEncoder
protected void setEncoder(StreamingEncoder<E> encoder)
getDecoder
protected StreamingDecoder<E> getDecoder()
setDecoder
protected void setDecoder(StreamingDecoder<E> decoder)
decode
public E decode(java.io.InputStream from)
throws java.io.IOException
- Specified by:
decode in interface StreamingDecoder<E>
- Throws:
java.io.IOException
encode
public void encode(E obj,
java.io.OutputStream into)
throws java.io.IOException
- Specified by:
encode in interface StreamingEncoder<E>
- Throws:
java.io.IOException