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.
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getError()
Get the exception that was thrown when executing the file copy
operation.
|
boolean |
hasError()
A boolean flag indicating if the copying was sucessful or not.
|
void |
run() |
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()