|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mcdermottroe.exemplar.utils.Files
public final class Files
A collection of File handling methods.
| Constructor Summary | |
|---|---|
private |
Files()
Private constructor to prevent instantiation of this class. |
| Method Summary | |
|---|---|
static Collection<File> |
findDirectories(File directory)
Find all the subdirectories of a directory. |
static Collection<File> |
findFiles(File directory)
Find all files under a directory. |
static void |
removeTree(File directory)
Remove a tree of files. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private Files()
| Method Detail |
|---|
public static void removeTree(File directory)
directory - The root directory of the tree to remove.public static Collection<File> findFiles(File directory)
directory - The directory to search.
Files found under the directory.public static Collection<File> findDirectories(File directory)
directory - The directory to search.
Files found under the directory which
are directories. directory is included
in the returned Collection.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||