| java.lang.Object biz.hammurapi.util.StreamPumper
StreamPumper | public class StreamPumper implements Runnable(Code) | | Copies all data from an input stream to an output stream.
author: Pavel Vlasov version: $Revision: 1.3 $ |
StreamPumper | public StreamPumper(InputStream is, OutputStream os, ExceptionSink sink, boolean closeStreams)(Code) | | Create a new stream pumper.
Parameters: is - input stream to read data from Parameters: os - output stream to write data to. |
run | public void run()(Code) | | Copies data from the input stream to the output stream.
Creates a copy of listeners collection before pumping.
addListener() and removeListener() have no effect once pumping has started.
Terminates as soon as the input stream is closed or an error occurs.
|
|
|