public static class URIQueryParameters.RegexFilter extends Object implements FilenameFilter
Constructor and Description |
---|
URIQueryParameters.RegexFilter(Pattern regex) |
public URIQueryParameters.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 (last component) of the file.true
if and only if the name should be
included in the file list; false
otherwise.
Returns true if the file is a directory or if it matches the glob pattern.public boolean matches(String name)
name
- the name (last component) of the fileCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.