public class RecursiveFileFinder
extends java.lang.Object
Constructor and Description |
---|
RecursiveFileFinder()
Construct a new RecursiveFileFinder object.
|
Modifier and Type | Method and Description |
---|---|
int |
findFiles(java.io.File directory,
java.util.Collection<java.io.File> collection)
Find all files beneath a given directory.
|
int |
findFiles(java.io.File directory,
java.io.FileFilter filter,
java.util.Collection<java.io.File> collection)
Find all files beneath a given directory, filtered by the specified
FilenameFilter.
|
int |
findFiles(java.io.File directory,
java.io.FilenameFilter filter,
java.util.Collection<java.io.File> collection)
Find all files beneath a given directory, filtered by the specified
FilenameFilter.
|
public RecursiveFileFinder()
public int findFiles(java.io.File directory, java.util.Collection<java.io.File> collection)
directory
- the starting directorycollection
- where to store the found File objectspublic int findFiles(java.io.File directory, java.io.FilenameFilter filter, java.util.Collection<java.io.File> collection)
directory
- the starting directoryfilter
- the FilenameFilter to use to filter the
file names, or null to accept all filescollection
- where to store the found File objectspublic int findFiles(java.io.File directory, java.io.FileFilter filter, java.util.Collection<java.io.File> collection)
directory
- the starting directoryfilter
- the FilenameFilter to use to filter the
file names, or null to accept all filescollection
- where to store the found File objects