public class FilenameWildcardFilter extends WildcardFilter implements FilenameFilter
FilenameWildcardFilter
filters incoming files from a directory,
based on file patterns.logger, pattern, patterns
Constructor and Description |
---|
FilenameWildcardFilter() |
FilenameWildcardFilter(String pattern) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File dir,
String name)
Filter condition decider method.
|
boolean |
accept(MuleMessage message)
Check a given message against this filter.
|
accept, equals, getPattern, hashCode, isCaseSensitive, setCaseSensitive, setPattern
public FilenameWildcardFilter()
public FilenameWildcardFilter(String pattern)
public boolean accept(File dir, String name)
boolean
TRUE
if the file conforms to an
acceptable pattern or FALSE
otherwise.accept
in interface FilenameFilter
dir
- The directory to apply the filter to.name
- The name of the file to apply the filter to.public boolean accept(MuleMessage message)
Filter
accept
in interface Filter
accept
in class WildcardFilter
message
- a non null message to filter.true
if the message matches the filterCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.