|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.system.FileSystem
public class FileSystem
Miscellaneous file system manipulation methods.
Constructor Summary | |
---|---|
FileSystem()
|
Method Summary | |
---|---|
static void |
destroy(File file,
boolean proceed)
Remove this completely. |
private static void |
destroyDir(File dir,
Collection errors)
Perform the recursion for destroy . |
static void |
ensureDir(String path)
Ensure that the given path is a directory, creating it if necessary. |
private static void |
handleError(Collection errors,
File path)
Handle an error, either by adding to the list, or if there is no list, throwing an IOException . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileSystem()
Method Detail |
---|
public static void destroy(File file, boolean proceed) throws IOException
destroy
simply returns.
proceed
- Proceed in the face of errors; otherwise the first error stops
the execution of the method.
IOException
- The list of files that couldn't be removed (in the detail string).private static void destroyDir(File dir, Collection errors) throws IOException
destroy
.
IOException
private static void handleError(Collection errors, File path) throws IOException
IOException
.
IOException
public static void ensureDir(String path) throws IllegalArgumentException
File.mkdirs
to create the directory along with any
intermediate paths.
IllegalArgumentException
- if the path already exists but is not a
directory, or it does not exist and cannot be created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |