Package edu.umd.cs.findbugs
Class RecursiveFileSearch
java.lang.Object
edu.umd.cs.findbugs.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.
- Author:
- David Hovemeyer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet an iterator over the files found by the search.search()
Perform the search.
-
Constructor Details
-
RecursiveFileSearch
Constructor.- Parameters:
baseDir
- the base directory for the searchfileFilter
- chooses files to add to the results, and subdirectories to continue the search in
-
-
Method Details
-
search
Perform the search.- Returns:
- this object
- Throws:
InterruptedException
- if the thread is interrupted before the search completes
-
fileNameIterator
Get an iterator over the files found by the search. The full path names of the files are returned. -
getDirectoriesScanned
-