|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.gubutech.xload.XloadIncrementalFileRename
The default file renaming policy for Xload. Implements a renaming policy whereby an attempt to create a file is made without any renaming and if a name collision occurs then renaming is implemented by appending a numeral that increments sequentially by 1 in parenthesis to the body of the file name (file extensions are preserved).
| Constructor Summary | |
XloadIncrementalFileRename()
|
|
| Method Summary | |
java.io.File |
rename(java.io.File file)
Performs the actual rename of the file if required. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XloadIncrementalFileRename()
| Method Detail |
public java.io.File rename(java.io.File file)
file argument. The file name will be the remoteName of the file before the upload(see XloadFile for a more detailed
explanation of remote name) and some target directory. This is then used to write the actual bytes of data to. If Xload cannot create the empty marker
file due to a file name collision then a renamed file name is used by appending a numeral that increments sequentially by 1 in parenthesis to the
body of the file name (file extensions are preserved). The process is repeated until a marker file is created. e.g.
original file name - filename.txt
renamed to - filename(1).txt
rename in interface XloadFileRenamefile - Initial file object that will be created and renamed if required.
java.lang.SecurityException - Thrown if there is a problem accessing files on the file system with regard to permissions set by the SecurityManager.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||