public class FileCopyRunnable
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
private java.lang.Throwable |
error |
private java.io.InputStream |
in |
private java.io.OutputStream |
out |
Constructor and Description |
---|
FileCopyRunnable(java.io.InputStream in,
java.io.OutputStream out)
Create a new file copy object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.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 java.io.InputStream in
private final java.io.OutputStream out
private java.lang.Throwable error
public FileCopyRunnable(java.io.InputStream in, java.io.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 void run()
run
in interface java.lang.Runnable
public boolean hasError()
getError()
public java.lang.Throwable getError()
hasError()