public class RecursiveFileSearch extends Object
| Constructor and Description |
|---|
RecursiveFileSearch(String baseDir,
FileFilter fileFilter)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<String> |
fileNameIterator()
Get an iterator over the files found by the search.
|
List<String> |
getDirectoriesScanned() |
RecursiveFileSearch |
search()
Perform the search.
|
public RecursiveFileSearch(String baseDir, FileFilter fileFilter)
baseDir - the base directory for the searchfileFilter - chooses files to add to the results, and subdirectories to
continue the search inpublic RecursiveFileSearch search() throws InterruptedException
InterruptedException - if the thread is interrupted before the search completespublic Iterator<String> fileNameIterator()
Copyright © 2003–2015. All rights reserved.