public class FilenameRegexFilter extends FilenameWildcardFilter
FilenameRegexFilter
filters incoming files from a directory, based
on a regular expression. If the expression evaluates to true, then the file will
be accepted.Modifier and Type | Field and Description |
---|---|
protected Pattern[] |
compiledPatterns |
logger, pattern, patterns
Constructor and Description |
---|
FilenameRegexFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Object object)
Filter condition decider method.
|
void |
setCaseSensitive(boolean caseSensitive) |
void |
setPattern(String pattern) |
accept, accept
equals, getPattern, hashCode, isCaseSensitive
protected volatile Pattern[] compiledPatterns
public boolean accept(Object object)
Returns boolean
TRUE
if the file conforms to the
regular expression pattern or FALSE
otherwise.
accept
in interface ObjectFilter
accept
in class WildcardFilter
public void setCaseSensitive(boolean caseSensitive)
setCaseSensitive
in class WildcardFilter
public void setPattern(String pattern)
setPattern
in class WildcardFilter
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.