Package org.apache.uima.pear.util
Class FileUtil.NameFileFilter
- java.lang.Object
-
- org.apache.uima.pear.util.FileUtil.NameFileFilter
-
- All Implemented Interfaces:
FileFilter
- Enclosing class:
- FileUtil
public static class FileUtil.NameFileFilter extends Object implements FileFilter
TheNameFileFilterclass allows to filter files based on specified file name.
-
-
Constructor Summary
Constructors Constructor Description NameFileFilter(String fileName)ConstructsNameFileFilterobject for a given file name.
-
-
-
Constructor Detail
-
NameFileFilter
public NameFileFilter(String fileName)
ConstructsNameFileFilterobject for a given file name.- Parameters:
fileName- The given file name for filtering.
-
-
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.
-
-