|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.clapper.util.io.RecursiveFileFinder
public class RecursiveFileFinder
A RecursiveFileFinder walks a directory tree and finds all files (or directories) that satisfy caller-supplied criteria. The match criteria are specified via either a FileFilter or FilenameFilter object.
| Constructor Summary | |
|---|---|
RecursiveFileFinder()
Construct a new RecursiveFileFinder object. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RecursiveFileFinder()
| Method Detail |
|---|
public int findFiles(java.io.File directory,
java.util.Collection<java.io.File> collection)
directory - the starting directorycollection - where to store the found File objects
public 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 objects
public 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||