public static class URIQueryParameters.RegexFilter extends Object implements FilenameFilter
Constructor and Description |
---|
RegexFilter(Pattern regex) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File dir,
String name)
Tests if a specified file should be included in a file list.
|
public RegexFilter(Pattern regex)
public boolean accept(File dir, String name)
accept
in interface FilenameFilter
dir
- 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.