public class NativeFileCopy extends java.lang.Object implements Abortable.Impl
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String[] |
copyCommand |
private java.lang.String |
destination |
private Abortable |
parent |
private java.lang.Process |
process |
private java.lang.String |
source |
| Constructor and Description |
|---|
NativeFileCopy(Abortable parent,
java.lang.String destination,
java.lang.String source,
java.lang.String[] copyCommand) |
| Modifier and Type | Method and Description |
|---|---|
static <T> T[] |
concat(T[] dest,
T[] src0,
T... src1) |
static Abortable.ImplFactory |
factory(java.lang.String[] copyCommand,
java.lang.String destination,
java.lang.String source) |
void |
forceAbort()
shall not block and must be safe to call from another thread than run
|
void |
run()
can block; will be run in a separate thread
|
private java.lang.Process process
private Abortable parent
private java.lang.String destination
private java.lang.String source
private java.lang.String[] copyCommand
public NativeFileCopy(Abortable parent, java.lang.String destination, java.lang.String source, java.lang.String[] copyCommand)
public void forceAbort()
Abortable.ImplforceAbort in interface Abortable.Implpublic static Abortable.ImplFactory factory(java.lang.String[] copyCommand, java.lang.String destination, java.lang.String source)
public static <T> T[] concat(T[] dest,
T[] src0,
T... src1)
public void run()
Abortable.Implrun in interface java.lang.Runnablerun in interface Abortable.ImplCopyright 2004-2015 Wandora Team