|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.autonomy.utilities.WildFilter
Implmentation of the FilenameFilter interface that uses standard * wildcards to isolate files. The additional 'Not' flag can isolate files that do not match the filter.
Constructor Summary | |
WildFilter()
Default constructor |
|
WildFilter(java.lang.String sFilter,
boolean bNot)
Constructor |
Method Summary | |
boolean |
accept(java.io.File dir,
java.lang.String name)
Implementation of the accept method specified by FilenameFilter |
void |
setFilter(java.lang.String sFilter,
boolean bNot)
Set the filter |
void |
setNot(boolean bNot)
Set the 'not' flag |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WildFilter()
public WildFilter(java.lang.String sFilter, boolean bNot)
sFilter
- Wildcard match used for this filter e.g. *.txtbNot
- If true, only returns filenames that do not match the given filterMethod Detail |
public void setFilter(java.lang.String sFilter, boolean bNot)
sFilter
- Wildcard match used for this filter e.g. *.txtpublic void setNot(boolean bNot)
bNot
- If true, returns only files that do not match the filterpublic boolean accept(java.io.File dir, java.lang.String name)
accept
in interface java.io.FilenameFilter
FilenameFilter
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |