public class RegExFileFilter
extends java.lang.Object
implements java.io.FileFilter
Pattern.
Preciesly, it will accept exactly those Files for which
the matches() method of the Pattern returns true on the output of the getName()
method of the File.| Constructor and Description |
|---|
RegExFileFilter(java.util.regex.Pattern pattern)
Sets up a RegExFileFilter which checks if the file name (not the
entire path) matches the passed in
Pattern. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.io.File file)
Checks whether a file satisfies the selection filter.
|