|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.io.filefilter.AbstractFileFilter org.apache.commons.io.filefilter.WildcardFileFilter org.apache.commons.finder.filters.PathFilter
public class PathFilter
IOFileFilter
implementation that uses wildcard matching on the file's path.
Constructor Summary | |
---|---|
PathFilter(java.lang.String wildcardmatcher,
boolean ignoreCase)
Construct a new IOFileFilter specifying whether the
wildcard criteria. |
Method Summary | |
---|---|
boolean |
accept(java.io.File file)
Checks to see if the full filename matches the wildcard. |
boolean |
accept(java.io.File dir,
java.lang.String name)
Checks to see if the filename matches the wildcard. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PathFilter(java.lang.String wildcardmatcher, boolean ignoreCase)
IOFileFilter
specifying whether the
wildcard criteria.
wildcardmatcher
- the wildcard string to match againstignoreCase
- whether to ignore the caseMethod Detail |
---|
public boolean accept(java.io.File dir, java.lang.String name)
accept
in interface java.io.FilenameFilter
accept
in interface org.apache.commons.io.filefilter.IOFileFilter
accept
in class org.apache.commons.io.filefilter.WildcardFileFilter
dir
- the file directoryname
- the full filename
public boolean accept(java.io.File file)
accept
in interface java.io.FileFilter
accept
in interface org.apache.commons.io.filefilter.IOFileFilter
accept
in class org.apache.commons.io.filefilter.WildcardFileFilter
file
- the file to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |