| Access | Constructor and Description |
|---|---|
| public | PatternFilenameFilter(String
the pattern string on which to filter file names patternStr)Constructs a pattern file name filter object. |
| public | PatternFilenameFilter(Pattern
the pattern on which to filter file names pattern)Constructs a pattern file name filter object. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | accept(File
the directory in which the file was found. dir, String the name of the file. fileName)Implements java. |
| pattern | back to summary |
|---|---|
| private final Pattern pattern | |
| PatternFilenameFilter | back to summary |
|---|---|
| public PatternFilenameFilter(String patternStr) Constructs a pattern file name filter object.
| |
| PatternFilenameFilter | back to summary |
|---|---|
| public PatternFilenameFilter(Pattern pattern) Constructs a pattern file name filter object.
| |
| accept | back to summary |
|---|---|
| public boolean accept(File dir, String fileName) Implements java. Doc from java. Tests if a specified file should be included in a file list. | |