Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Multivalent API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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`

Constructor Summary
`FilenameFilterPattern(java.util.regex.Pattern regex)`
`FilenameFilterPattern(java.lang.String regex)`

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`

Constructor Detail

### FilenameFilterPattern

    public FilenameFilterPattern(java.lang.String regex)

### FilenameFilterPattern

    public FilenameFilterPattern(java.util.regex.Pattern regex)

Method Detail

### accept

    public boolean accept(java.io.File dir,
                          java.lang.String name)

  Specified by:
    `accept` in interface `java.io.FilenameFilter`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Multivalent API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD