|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.oreilly.servlet.multipart.DefaultFileRenamePolicy
Implements a renaming policy that adds increasing integers to the body of any file that collides. For example, if foo.gif is being uploaded and a file by the same name already exists, this logic will rename the upload foo1.gif. A second upload by the same name would be foo2.gif.
Constructor Summary | |
DefaultFileRenamePolicy()
|
Method Summary | |
java.io.File |
rename(java.io.File f)
Returns a File object holding a new name for the specified file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultFileRenamePolicy()
Method Detail |
public java.io.File rename(java.io.File f)
FileRenamePolicy
rename
in interface FileRenamePolicy
FilePart.writeTo(File fileOrDirectory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |