Package org.apache.camel.component.file
Interface OptimizedFileFilter
- All Superinterfaces:
GenericFileFilter
A filter for filtering file that is optimized for matching by name only.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionTests whether the specified file should be included (quick test using only file name)default booleanaccept(GenericFile file) Tests whether the specified generic file should be included
-
Method Details
-
accept
Description copied from interface:GenericFileFilterTests whether the specified generic file should be included- Specified by:
acceptin interfaceGenericFileFilter- Parameters:
file- the generic file to be tested- Returns:
trueif and only iffileshould be included
-
accept
Tests whether the specified file should be included (quick test using only file name)- Parameters:
name- the file name- Returns:
trueif and only iffileshould be included, null to use theaccept(GenericFile)method.
-