public class WildcardFileFilter extends Object implements FileFilter
A file filter which supports the wildcards "?" (for single characters) and "*" (for no or more characters).
| Constructor and Description |
|---|
WildcardFileFilter(String pattern,
boolean acceptDirectories)
Creates a file filter.
|
public WildcardFileFilter(String pattern, boolean acceptDirectories)
Creates a file filter.
pattern - The pattern.acceptDirectories - The flag if directories should be accepted by the filter - if
they match the pattern.IllegalArgumentException - If the pattern is null.public boolean accept(File pathname)
accept in interface FileFilterCopyright © 2015–2018. All rights reserved.