de.huxhorn.sulky.codec.streaming
Class StreamingSerializableCodec<E extends java.io.Serializable>

java.lang.Object
  extended by de.huxhorn.sulky.codec.streaming.StreamingSerializableCodec<E>
All Implemented Interfaces:
StreamingCodec<E>, StreamingDecoder<E>, StreamingEncoder<E>

public class StreamingSerializableCodec<E extends java.io.Serializable>
extends java.lang.Object
implements StreamingCodec<E>


Constructor Summary
StreamingSerializableCodec()
           
 
Method Summary
 E decode(java.io.InputStream from)
           
 void encode(E obj, java.io.OutputStream into)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamingSerializableCodec

public StreamingSerializableCodec()
Method Detail

decode

public E decode(java.io.InputStream from)
                                      throws java.io.IOException
Specified by:
decode in interface StreamingDecoder<E extends java.io.Serializable>
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 extends java.io.Serializable>
Throws:
java.io.IOException