org.mule.providers.file.filters
Class FilenameWildcardFilter
java.lang.Object
org.mule.routing.filters.WildcardFilter
org.mule.providers.file.filters.FilenameWildcardFilter
- All Implemented Interfaces:
- FilenameFilter, ObjectFilter, UMOFilter
- Direct Known Subclasses:
- FilenameRegexFilter
- public class FilenameWildcardFilter
- extends WildcardFilter
- implements FilenameFilter
FilenameWildcardFilter
filters incoming files from a directory,
based on file patterns.
Method Summary |
boolean |
accept(File dir,
String name)
UMOFilter condition decider method. |
boolean |
accept(UMOMessage message)
Check a given message against this filter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilenameWildcardFilter
public FilenameWildcardFilter()
FilenameWildcardFilter
public FilenameWildcardFilter(String pattern)
accept
public boolean accept(File dir,
String name)
- UMOFilter condition decider method. Returns
boolean
TRUE
if the file conforms to an
acceptable pattern or FALSE
otherwise.
- Specified by:
accept
in interface FilenameFilter
- Parameters:
dir
- The directory to apply the filter to.name
- The name of the file to apply the filter to.
- Returns:
- indication of acceptance as boolean.
accept
public boolean accept(UMOMessage message)
- Description copied from interface:
UMOFilter
- Check a given message against this filter.
- Specified by:
accept
in interface UMOFilter
- Overrides:
accept
in class WildcardFilter
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.