|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.generationjava.io.find.FileFinder
Finds Files in a file system. Informs FindListeners whenever a Find is made, and returns the finds to the user.
| Constructor Summary | |
FileFinder()
|
|
| Method Summary | |
void |
addFindListener(com.generationjava.io.find.FindListener fl)
Add a FindListener. |
java.lang.String[] |
find(java.io.File directory)
Find all files in the specified directory. |
java.lang.String[] |
find(java.io.File directory,
java.lang.String extension)
Find all files in the specified directory with the specified extension. |
boolean |
getIncludeDirectories()
Will it find directories, as well as files. |
void |
notifyDirectoryFinished(java.io.File directory,
java.lang.String[] 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.lang.String file)
Notify FindListeners that a file has been found. |
void |
setIncludeDirectories(boolean bool)
Find directories, as well as files. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileFinder()
| Method Detail |
public void setIncludeDirectories(boolean bool)
public boolean getIncludeDirectories()
public java.lang.String[] find(java.io.File directory)
find in interface Finder
public java.lang.String[] find(java.io.File directory,
java.lang.String extension)
find in interface Finderpublic void addFindListener(com.generationjava.io.find.FindListener fl)
addFindListener in interface Finderpublic void notifyDirectoryStarted(java.io.File directory)
public void notifyDirectoryFinished(java.io.File directory,
java.lang.String[] files)
public void notifyFileFound(java.io.File directory,
java.lang.String file)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||