phelps.io
Class FilenameFilterPattern
java.lang.Object
phelps.io.FilenameFilterPattern
- All Implemented Interfaces:
- java.io.FilenameFilter
- public class FilenameFilterPattern
- extends java.lang.Object
- implements java.io.FilenameFilter
Filter files by testing a regular expression against the file name only, the tail of pathname.
General FilenameFilter
s are more flexible, but this saves defining a new class for the most common uses.
- Version:
- $Revision: 1.2 $ $Date: 2003/01/19 17:59:34 $
- See Also:
FileFilterPattern
Method Summary |
boolean |
accept(java.io.File dir,
java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilenameFilterPattern
public FilenameFilterPattern(java.lang.String regex)
FilenameFilterPattern
public FilenameFilterPattern(java.util.regex.Pattern regex)
accept
public boolean accept(java.io.File dir,
java.lang.String name)
- Specified by:
accept
in interface java.io.FilenameFilter