|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.uima.pear.util.FileUtil.ExtFilenameFilter
public static class FileUtil.ExtFilenameFilter
The ExtFileFilter
allows to filter file names based on the specified filename
extension.
Constructor Summary | |
---|---|
FileUtil.ExtFilenameFilter(String fileExt)
Create instance of the ExtFileFilter class for a given filename extension. |
|
FileUtil.ExtFilenameFilter(String fileExt,
boolean ignoreCase)
Create instance of the ExtFileFilter class for a given filename extension. |
Method Summary | |
---|---|
boolean |
accept(File dir,
String name)
Tests if a specified file should be included in a file list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileUtil.ExtFilenameFilter(String fileExt)
ExtFileFilter
class for a given filename extension. By
default, this filename filter is case insensitive. If the given filename extension does not
start from the '.' character, adds this character at the beginning.
fileExt
- The given filename extension.public FileUtil.ExtFilenameFilter(String fileExt, boolean ignoreCase)
ExtFileFilter
class for a given filename extension. If
a given boolean
flag is true
, this filename filter is case
insensitive, otherwise it's case sensitive. If the given filename extension does not start
from the '.' character, adds this character at the beginning.
fileExt
- The given filename extension.ignoreCase
- The given 'case sensitivity' flag.Method Detail |
---|
public boolean accept(File dir, String name)
accept
in interface FilenameFilter
dir
- The directory in which the file was found.name
- The given name of the file.
true
, if the given file should be included in the list,
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |