|
Multivalent API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectphelps.io.FileFilterPattern
Filter files by testing a regular expression against the full pathname.
General FileFilter
s are more flexible, but this saves defining a new class for the most common uses.
FilenameFilterPattern
Constructor Summary | |
---|---|
FileFilterPattern(java.util.regex.Pattern regex)
|
|
FileFilterPattern(java.lang.String regex)
|
Method Summary | |
---|---|
boolean |
accept(java.io.File pathname)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileFilterPattern(java.lang.String regex)
public FileFilterPattern(java.util.regex.Pattern regex)
Method Detail |
---|
public boolean accept(java.io.File pathname)
accept
in interface java.io.FileFilter
|
Multivalent API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |