public class FileCopyRunnable extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
private Throwable |
error |
private InputStream |
in |
private OutputStream |
out |
Constructor and Description |
---|
FileCopyRunnable(InputStream in,
OutputStream out)
Create a new file copy object.
|
private final InputStream in
private final OutputStream out
private Throwable error
public FileCopyRunnable(InputStream in, OutputStream out)
in
- The input stream to read data from (required)out
- The output stream to write data to (optional; if not
given the input stream is read and then discarded)public boolean hasError()
getError()
public Throwable getError()
hasError()