public class FileSystemCopier
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
static int |
OVERWRITE_ALWAYS
Behaviour if target files already exist.
|
static int |
OVERWRITE_ASK
Behaviour if target files already exist.
|
static int |
OVERWRITE_NEVER
Behaviour if target files already exist.
|
Constructor and Description |
---|
FileSystemCopier()
The constructor method for the searcher.
|
Modifier and Type | Method and Description |
---|---|
static BackgroundTask |
createBackgroundTask(java.lang.Object[] sources,
javax.swing.Icon icon,
java.lang.Object[] targets,
DockingWindow parentwindow,
int overwrite,
java.lang.String helpid,
boolean logmessages,
VFSConnection vfsconn)
Convenience method to get a pre-configured background task.
|
protected void |
finalize()
Clean-up method to help the gc.
|
void |
run()
Execution code.
|
public static final int OVERWRITE_NEVER
public static final int OVERWRITE_ALWAYS
public static final int OVERWRITE_ASK
public FileSystemCopier()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
- Error indicationpublic void run()
run
in interface java.lang.Runnable
public static BackgroundTask createBackgroundTask(java.lang.Object[] sources, javax.swing.Icon icon, java.lang.Object[] targets, DockingWindow parentwindow, int overwrite, java.lang.String helpid, boolean logmessages, VFSConnection vfsconn)
sources
- The files/URLs to be copied (File
or FileObject
)icon
- The icon representing the tasktargets
- The target directories (File
or FileObject
)parentwindow
- The parental componentoverwrite
- OVERWRITE_NEVER | OVERWRITE_ALWAYS | OVERWRITE_ASKhelpid
- The help system linklogmessages
- Shall messages be logged sequentially (optional)?vfsconn
- The network connection (optional)Copyright © 2005-2013 Leisenfels UG (haftungsbeschränkt). All rights reserved.