|
FindBugs™ 1.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cs.findbugs.RecursiveFileSearch
public class RecursiveFileSearch
Recursively search a directory, its subdirectories, etc. Note that the search algorithm uses a worklist, so its implementation does not use recursive method calls.
| Constructor Summary | |
|---|---|
RecursiveFileSearch(java.lang.String baseDir,
java.io.FileFilter fileFilter)
Constructor. |
|
| Method Summary | |
|---|---|
java.util.Iterator<java.lang.String> |
fileNameIterator()
Get an iterator over the files found by the search. |
java.util.List<java.lang.String> |
getDirectoriesScanned()
|
RecursiveFileSearch |
search()
Perform the search. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RecursiveFileSearch(java.lang.String baseDir,
java.io.FileFilter fileFilter)
baseDir - the base directory for the searchfileFilter - chooses files to add to the results, and subdirectories
to continue the search in| Method Detail |
|---|
public RecursiveFileSearch search()
throws java.lang.InterruptedException
java.lang.InterruptedException - if the thread is interrupted before the
search completespublic java.util.Iterator<java.lang.String> fileNameIterator()
public java.util.List<java.lang.String> getDirectoriesScanned()
|
FindBugs™ 1.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||