Package org.apache.uima.pear.util
Class FileUtil.DirFileFilter
java.lang.Object
org.apache.uima.pear.util.FileUtil.DirFileFilter
- All Implemented Interfaces:
FileFilter
- Enclosing class:
- FileUtil
The
DirFileFilter
class allows to filter files based on specified directory path
and filename extension.-
Constructor Summary
ConstructorDescriptionDirFileFilter
(String dirPath, String fileExt) ConstructsDirFileFilter
object for specified directory and file extension. -
Method Summary
-
Constructor Details
-
DirFileFilter
ConstructsDirFileFilter
object for specified directory and file extension.- Parameters:
dirPath
- The given directory.fileExt
- The given file extension.
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceFileFilter
- Parameters:
file
- The given file to be tested.- Returns:
true
if the given file should be accepted,false
otherwise.
-