public class RegexFilter extends BaseFilter
| Constructor and Description |
|---|
RegexFilter(String pPattern)
Construct the filter using the given pattern.
|
RegexFilter(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 RegexFilter(String pPattern) throws PatternSyntaxException
pPattern - the regular expression to use during filteringPatternSyntaxExceptionpublic RegexFilter(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.