public class FileFinder extends Object
| Modifier and Type | Method and Description |
|---|---|
static File |
findFile(File rootDir,
FilenameFilter filter)
Finds a file matching the given file name filter in the given root directory or any
subdirectory.
|
static File |
findFile(File rootDir,
String fileName)
Finds a file with the given name in the given root directory or any subdirectory.
|
public static File findFile(File rootDir, String fileName)
The method returns the first matching result, if any, and ignores all other matches.
rootDir - root directoryfileName - exact file name, without any wildcardspublic static File findFile(File rootDir, FilenameFilter filter)
The method returns the first matching result, if any, and ignores all other matches.
rootDir - root directoryfilter - file name filterCopyright © 2006–2017 OPS4J - Open Participation Software for Java. All rights reserved.