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 |
| 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, acceptprotected 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 org.mule.api.routing.filter.ObjectFilteraccept in class org.mule.routing.filters.WildcardFilterpublic void setCaseSensitive(boolean caseSensitive)
setCaseSensitive in class org.mule.routing.filters.WildcardFilterpublic void setPattern(String pattern)
setPattern in class org.mule.routing.filters.WildcardFilterCopyright © 2003–2018 MuleSoft, Inc.. All rights reserved.