public class GlobbingFilter extends BaseFilter
RegexFilter and just
replaces a "*" with ".*" and a "." with "\.".| Constructor and Description |
|---|
GlobbingFilter(String pPattern)
Construct the filter using the given pattern.
|
GlobbingFilter(String pPattern,
int pFlags)
Construct the filter using the given pattern and match-flags
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(File dir,
String name) |
acceptDir, ignoreDotDirs, setRecursionpublic GlobbingFilter(String pPattern) throws PatternSyntaxException
pPattern - the regular expression to use during filteringPatternSyntaxExceptionpublic GlobbingFilter(String pPattern, int pFlags) throws PatternSyntaxException, IllegalArgumentException
pPattern - the regular expression to use during filteringpFlags - the match-flags,
see Pattern.Pattern(String,int)PatternSyntaxExceptionIllegalArgumentExceptionCopyright © 2019. All rights reserved.