|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jaulp.file.delete.DeleteFileUtils
public class DeleteFileUtils
The Class DeleteFileUtils helps you delete files.
Constructor Summary | |
---|---|
DeleteFileUtils()
|
Method Summary | |
---|---|
static java.lang.Exception |
checkFile(java.io.File file)
Checks the File if it is a directory or if its exists or if it is empty. |
static void |
deleleFiles(java.io.File file)
Tries to delete all files in the Directory. |
static void |
delete(java.io.File file)
Tries to delete a file and if its a directory than its deletes all the sub-directories. |
static void |
deleteAllFiles(java.io.File file)
Deletes the File and if it is an directory it deletes his sub-directories recursively. |
static void |
deleteAllFilesWithSuffix(java.io.File file,
java.lang.String theSuffix)
Deletes all files with the given suffix recursively. |
static void |
deleteFile(java.io.File fileToDelete)
Tries to delete the given file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeleteFileUtils()
Method Detail |
---|
public static java.lang.Exception checkFile(java.io.File file)
file
- The File to check.
public static void deleleFiles(java.io.File file) throws java.io.IOException
file
- The Directory to delete files.
java.io.IOException
- Signals that an I/O exception has occurred.public static void delete(java.io.File file) throws java.io.IOException
file
- The File to delete.
java.io.IOException
- Signals that an I/O exception has occurred.public static void deleteAllFiles(java.io.File file) throws java.io.IOException
file
- The File to delete.
java.io.IOException
- Signals that an I/O exception has occurred.public static void deleteAllFilesWithSuffix(java.io.File file, java.lang.String theSuffix) throws java.io.IOException
file
- The directory from where to delete the files wiht the given
suffix.theSuffix
- The suffix from the files to delete.
java.io.IOException
- Signals that an I/O exception has occurred.public static void deleteFile(java.io.File fileToDelete) throws java.io.IOException
fileToDelete
- The file to delete.
java.io.IOException
- Signals that an I/O exception has occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |