|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.util.FileFinder
A java version of perl's File::Find. Searches under the passed directory, calling you back with every file found.
The callback gets passed a File representing each file found. You can call getAbsolutePath() to get the full path, getName() to get the filename, and getParent() to get the directory the file is in.
Nested Class Summary | |
static interface |
FileFinder.Callback
|
Constructor Summary | |
FileFinder(FileFinder.Callback callback)
Constructs a new FileFinder with the specified callback. |
Method Summary | |
void |
find(java.io.File f)
Starts the search from the specified directory |
void |
find(java.lang.String path)
Starts the search from the specified directory. |
static void |
main(java.lang.String[] args)
Tests it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileFinder(FileFinder.Callback callback)
Method Detail |
public void find(java.lang.String path)
public void find(java.io.File f)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |