| Constructor and Description |
|---|
Pumper(InputStream is,
OutputStream os,
boolean closeStreams)
Create a new pumper.
|
Pumper(Reader reader,
Writer writer,
boolean closeStreams)
Create a new pumper.
|
| Modifier and Type | Method and Description |
|---|---|
Long |
call()
Copies data from the input stream to the output stream.
|
static long |
pump(InputStream in,
OutputStream out,
boolean closeStreams)
Copies data from the input stream to the output stream.
|
static long |
pump(Reader in,
Writer out,
boolean closeStreams)
Copies data from the reader to the writer.
|
public Pumper(InputStream is, OutputStream os, boolean closeStreams)
is - input stream to read data fromos - output stream to write data to.public Long call() throws Exception
public static long pump(InputStream in, OutputStream out, boolean closeStreams) throws IOException
IOExceptionpublic static long pump(Reader in, Writer out, boolean closeStreams) throws IOException
IOException