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
public static class FileUtil.DirFileFilter extends Object implements FileFilter
TheDirFileFilterclass allows to filter files based on specified directory path and filename extension.
-
-
Constructor Summary
Constructors Constructor Description DirFileFilter(String dirPath, String fileExt)ConstructsDirFileFilterobject for specified directory and file extension.
-
-
-
Method Detail
-
accept
public boolean accept(File file)
- Specified by:
acceptin interfaceFileFilter- Parameters:
file- The given file to be tested.- Returns:
trueif the given file should be accepted,falseotherwise.
-
-