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
The
NameFileFilter class allows to filter files based on specified file name.-
Constructor Summary
ConstructorsConstructorDescriptionNameFileFilter(String fileName) ConstructsNameFileFilterobject for a given file name. -
Method Summary
-
Constructor Details
-
NameFileFilter
ConstructsNameFileFilterobject for a given file name.- Parameters:
fileName- The given file name for filtering.
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceFileFilter- Parameters:
file- The given file to be tested.- Returns:
trueif the given file should be accepted,falseotherwise.
-