public class WildcardFileFilter extends Object implements FileFilter
Constructor and Description |
---|
WildcardFileFilter(String pattern)
Constructs a wildcard file filter with the given pattern.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File pathname)
Tests whether or not the specified abstract pathname should be
included in a pathname list.
|
public WildcardFileFilter(String pattern)
pattern
- The file name patternpublic boolean accept(File pathname)
accept
in interface FileFilter
pathname
- The abstract pathname to be testedtrue
if and only if pathname
should be included