|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hammurapi.util.Pumper
public class Pumper
Copies all data from an input stream to an output stream.
| Constructor Summary | |
|---|---|
Pumper(InputStream is,
OutputStream os,
boolean closeStreams)
Create a new pumper. |
|
Pumper(Reader reader,
Writer writer,
boolean closeStreams)
Create a new pumper. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Pumper(InputStream is,
OutputStream os,
boolean closeStreams)
is - input stream to read data fromos - output stream to write data to.
public Pumper(Reader reader,
Writer writer,
boolean closeStreams)
reader - Reader to read data fromwriter - Writer to write data to.| Method Detail |
|---|
public Long call()
throws Exception
call in interface Callable<Long>Exception
public static long pump(InputStream in,
OutputStream out,
boolean closeStreams)
throws IOException
IOException
public static long pump(Reader in,
Writer out,
boolean closeStreams)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||