org.mule.transport.file.filters
Class FilenameRegexFilter
java.lang.Object
org.mule.routing.filters.WildcardFilter
org.mule.transport.file.filters.FilenameWildcardFilter
org.mule.transport.file.filters.FilenameRegexFilter
- All Implemented Interfaces:
- FilenameFilter, Filter, ObjectFilter
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.
compiledPatterns
protected volatile Pattern[] compiledPatterns
FilenameRegexFilter
public FilenameRegexFilter()
accept
public boolean accept(Object object)
- Filter condition decider method.
Returns boolean
TRUE
if the file conforms to the
regular expression pattern or FALSE
otherwise.
- Specified by:
accept
in interface ObjectFilter
- Overrides:
accept
in class WildcardFilter
- Returns:
- indication of acceptance as boolean.
setCaseSensitive
public void setCaseSensitive(boolean caseSensitive)
- Overrides:
setCaseSensitive
in class WildcardFilter
setPattern
public void setPattern(String pattern)
- Overrides:
setPattern
in class WildcardFilter
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.