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
ConstructorsConstructorDescriptionDirFileFilter(String dirPath, String fileExt) ConstructsDirFileFilterobject for specified directory and file extension. -
Method Summary
-
Constructor Details
-
DirFileFilter
ConstructsDirFileFilterobject for specified directory and file extension.- Parameters:
dirPath- The given directory.fileExt- The given file extension.
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceFileFilter- Parameters:
file- The given file to be tested.- Returns:
trueif the given file should be accepted,falseotherwise.
-