|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.io.find.FileFinder
Finds Files in a file system. Informs FindListeners whenever a Find is made, and returns the finds to the user.
Field Summary | |
private java.util.List |
findListeners
|
Fields inherited from interface org.apache.commons.io.find.Finder |
CAN_READ, CAN_WRITE, DAYSTART, DEPTH, EMPTY, HIDDEN, IGNORE_HIDDEN_DIRS, INAME, IPATH, IREGEX, MAXDEPTH, MIN, MINDEPTH, NAME, NEWER, NOT, PATH, REGEX, SIZE, TIME, TYPE |
Constructor Summary | |
FileFinder()
|
Method Summary | |
void |
addFindListener(FindListener fl)
Add a FindListener. |
java.io.File[] |
find(java.io.File directory)
Find all files in the specified directory. |
private java.util.List |
find(java.io.File directory,
FindingFilter filter,
boolean depthFirst)
|
java.io.File[] |
find(java.io.File directory,
java.util.Map options)
|
void |
notifyDirectoryFinished(java.io.File directory,
java.io.File[] files)
Notify all FindListeners that a directory has been finished. |
void |
notifyDirectoryStarted(java.io.File directory)
Notify all FindListeners that a directory is being started. |
void |
notifyFileFound(java.io.File directory,
java.io.File file)
Notify FindListeners that a file has been found. |
void |
removeFindListener(FindListener fl)
Remove a FindListener. |
private static boolean |
toBoolean(java.lang.Object obj)
|
private static int |
toInt(java.lang.Object obj)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.List findListeners
Constructor Detail |
public FileFinder()
Method Detail |
private static int toInt(java.lang.Object obj)
private static boolean toBoolean(java.lang.Object obj)
public java.io.File[] find(java.io.File directory)
find
in interface Finder
public java.io.File[] find(java.io.File directory, java.util.Map options)
find
in interface Finder
private java.util.List find(java.io.File directory, FindingFilter filter, boolean depthFirst)
public void addFindListener(FindListener fl)
addFindListener
in interface Finder
public void removeFindListener(FindListener fl)
removeFindListener
in interface Finder
public void notifyDirectoryStarted(java.io.File directory)
public void notifyDirectoryFinished(java.io.File directory, java.io.File[] files)
public void notifyFileFound(java.io.File directory, java.io.File file)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |