public class WildcardFileFilter
extends java.lang.Object
FileFilter that matches file names against
wildcard pattern (*, ? and **).| Constructor and Description |
|---|
WildcardFileFilter(java.lang.String pattern)
Wildcard file filter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.io.File file)
Tests whether or not the specified abstract pathname should be
included in a pathname list.
|
boolean |
accept(java.io.File dir,
java.lang.String name)
Tests if a specified file should be included in a file list.
|
public WildcardFileFilter(java.lang.String pattern)
public boolean accept(java.io.File dir,
java.lang.String name)
accept in interface java.io.FilenameFilterdir - the directory in which the file was found.name - the name of the file.true if and only if the name should be
included in the file list; false otherwise.public boolean accept(java.io.File file)
accept in interface java.io.FileFilterfile - The abstract pathname to be testedtrue if and only if pathname
should be includedCopyright © 2003-2013 Jodd Team