Class FileFinder
- java.lang.Object
-
- net.sourceforge.pmd.internal.util.FileFinder
-
public class FileFinder extends Object
A utility class for finding files within a directory.
-
-
Constructor Summary
Constructors Constructor Description FileFinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<File>
findFilesFrom(File dir, FilenameFilter filter, boolean recurse)
Searches for files in a given directory.
-
-
-
Method Detail
-
findFilesFrom
public List<File> findFilesFrom(File dir, FilenameFilter filter, boolean recurse)
Searches for files in a given directory.- Parameters:
dir
- the directory to search filesfilter
- the filename filter that can optionally be passed to get files that match this filterrecurse
- search for files recursively or not- Returns:
- list of files from the given directory
-
-