|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.unkrig.commons.file.FileUtil
public final class FileUtil
Utility class for various file operations.
| Method Summary | |
|---|---|
static boolean |
attemptToDeleteRecursively(java.io.File file)
Similar to File.delete(), but clears and deletes directory trees recursively. |
static void |
deleteRecursively(java.io.File file)
Deletes the given regular file, or clears and deletes the given directory recursively. |
static void |
rename(java.io.File oldFile,
java.io.File newFile)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean attemptToDeleteRecursively(java.io.File file)
File.delete(), but clears and deletes directory trees recursively.
file - The regular file or directory to delete
public static void deleteRecursively(java.io.File file)
throws java.io.IOException
java.io.IOException - The file could not be deleted
public static void rename(java.io.File oldFile,
java.io.File newFile)
throws java.io.IOException
java.io.IOException - Renaming failedFile.renameTo(File)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||