public class StreamPumper extends Object implements Runnable
Constructor and Description |
---|
StreamPumper(InputStream is,
OutputStream os)
Create a new stream pumper.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Copies data from the input stream to the output stream.
|
public StreamPumper(InputStream is, OutputStream os)
is
- input stream to read data fromos
- output stream to write data to.