|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrabbit.io.FileHelper
public class FileHelper
Helper class for common file operations.
Constructor Summary | |
---|---|
FileHelper()
|
Method Summary | |
---|---|
static void |
delete(java.io.File toDelete)
Try to delete a file. |
static void |
mkdirs(java.io.File newDir)
Try to create the given directory and all parent directories that are needed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileHelper()
Method Detail |
---|
public static void delete(java.io.File toDelete) throws java.io.IOException
toDelete
- the file to delete
java.lang.NullPointerException
- if toDelete is null
java.io.IOException
- if file deletion failedpublic static void mkdirs(java.io.File newDir) throws java.io.IOException
newDir
- the directory to create
java.io.IOException
- if directory could not be created
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |