| Constructor and Description |
|---|
CopyJob(InputStream is,
OutputStream os)
Constructor; the input stream will automatically be closed on exit, while the output stream won't.
|
CopyJob(InputStream is,
OutputStream os,
boolean closeOutputStreamOnExit)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
kill()
Kills this job.
|
void |
run()
Copies all data from input stream to output stream (both passed to constructor) until job is killed
|
public CopyJob(InputStream is, OutputStream os)
is - input stream to read data fromos - output stream to write data topublic CopyJob(InputStream is, OutputStream os, boolean closeOutputStreamOnExit)
is - input stream to read data fromos - output stream to write data tocloseOutputStreamOnExit - whether to flush and close the output stream on exitCopyright © 2015 JBoss, by Red Hat. All rights reserved.