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.Impl
forceAbort
in interface Abortable.Impl
public 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.Impl
run
in interface java.lang.Runnable
run
in interface Abortable.Impl
Copyright 2004-2015 Wandora Team