|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.datacrow.filerenamer.FileRenamer
public class FileRenamer
A file renamer is capable of renaming physical files using file patterns.
FilePattern
Method Summary | |
---|---|
void |
cancel()
Cancels the current task. |
static FileRenamer |
getInstance()
Returns the instance. |
boolean |
isRunning()
Indicates a task is running. |
void |
start(IFileRenamerListener listener,
java.io.File baseDir,
FilePattern pattern,
java.util.Collection<DcObject> objects)
Start the renaming process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static FileRenamer getInstance()
public void start(IFileRenamerListener listener, java.io.File baseDir, FilePattern pattern, java.util.Collection<DcObject> objects)
listener
- The listener to update on events and results.baseDir
- The base directory.pattern
- The file pattern to use.objects
- The items for which the files will be renamed.public boolean isRunning()
public void cancel()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |