net.metanotion.util
Class ObjectStreamPump<I>

java.lang.Object
  extended by net.metanotion.util.ObjectStreamPump<I>

public final class ObjectStreamPump<I>
extends java.lang.Object

Connect an ObjectInputStream to an ObjectOutputStream. This class does the "opposite" of ObjectPipe. Given an input stream, it will read every object, and the write it to the corresponding output stream.


Constructor Summary
ObjectStreamPump(ObjectInputStream<I> in, ObjectOutputStream<I> out)
          Create a stream pump.
 
Method Summary
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectStreamPump

public ObjectStreamPump(ObjectInputStream<I> in,
                        ObjectOutputStream<I> out)
Create a stream pump.

Parameters:
in - InputStream to read from.
out - OutputStream to write to.
Method Detail

start

public void start()