|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindprod.filter.EndsWithFilter
public final class EndsWithFilter
Select files that end with a particular string.
Filters files whose file names end with a given string, case insensitive. Does not accept directories. See DirListFilter. see also FileListFilter and ClamFilter.
Constructor Summary | |
---|---|
EndsWithFilter(boolean invert,
java.lang.String endsWith)
constructor |
|
EndsWithFilter(java.lang.String endsWith)
constructor |
Method Summary | |
---|---|
boolean |
accept(java.io.File dir,
java.lang.String name)
Select only Files ending with our string. |
static void |
main(java.lang.String[] args)
TEST harness. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EndsWithFilter(java.lang.String endsWith)
endsWith
- string file must end with. Case Insensitive.public EndsWithFilter(boolean invert, java.lang.String endsWith)
invert
- if true, selects files not in the list instead.endsWith
- string file must end with. Case Insensitive.Method Detail |
---|
public boolean accept(java.io.File dir, java.lang.String name)
accept
in interface java.io.FilenameFilter
dir
- the directory in which the file was found.name
- the name of the file.
public static void main(java.lang.String[] args)
args
- not used.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |