java.lang.Runnable
public class InputStreamPumper extends java.lang.Object implements java.lang.Runnable
Modifier and Type | Field | Description |
---|---|---|
static int |
SLEEPING_TIME |
Constructor | Description |
---|---|
InputStreamPumper(java.io.InputStream is,
java.io.OutputStream os) |
Create a new stream pumper.
|
Modifier and Type | Method | Description |
---|---|---|
void |
run() |
Copies data from the input stream to the output stream.
|
void |
stopProcessing() |
public static final int SLEEPING_TIME
public InputStreamPumper(java.io.InputStream is, java.io.OutputStream os)
is
- input stream to read data fromos
- output stream to write data to.public void run()
run
in interface java.lang.Runnable
public void stopProcessing()