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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final LinkedList<File> private final FileFilter -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
baseDir
-
fileFilter
-
directoryWorkList
-
directoriesScanned
-
directoriesScannedList
-
resultList
-
-
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
-
bestEffortCanonicalPath
-
search
Perform the search.- Returns:
- this object
- Throws:
InterruptedException- if the thread is interrupted before the search completes
-
fileNameIterator
-
getDirectoriesScanned
-