Class ChainFileListFilter<F>
java.lang.Object
org.springframework.integration.file.filters.CompositeFileListFilter<F>
org.springframework.integration.file.filters.ChainFileListFilter<F>
- Type Parameters:
F- The type that will be filtered.
- All Implemented Interfaces:
Closeable,AutoCloseable,DiscardAwareFileListFilter<F>,FileListFilter<F>,ResettableFileListFilter<F>,ReversibleFileListFilter<F>
The
CompositeFileListFilter extension which chains the result
of the previous filter to the next one. If a filter in the chain returns
an empty list, the remaining filters are not invoked.- Since:
- 4.3.7
- Author:
- Artem Bilan, Gary Russell, Cengis Kocaurlu
-
Field Summary
Fields inherited from class org.springframework.integration.file.filters.CompositeFileListFilter
fileFilters -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanFilter a single file; only called externally ifFileListFilter.supportsSingleFileFiltering()returns true.filterFiles(F[] files) Filters out files and returns the files that are left in a list, or an empty list when a null is passed in.Methods inherited from class org.springframework.integration.file.filters.CompositeFileListFilter
addDiscardCallback, addFilter, addFilters, addFilters, close, isForRecursion, remove, rollback, supportsSingleFileFiltering
-
Constructor Details
-
ChainFileListFilter
public ChainFileListFilter() -
ChainFileListFilter
-
-
Method Details
-
filterFiles
Description copied from interface:FileListFilterFilters out files and returns the files that are left in a list, or an empty list when a null is passed in.- Specified by:
filterFilesin interfaceFileListFilter<F>- Overrides:
filterFilesin classCompositeFileListFilter<F>- Parameters:
files- The files.- Returns:
- The filtered files.
-
accept
Description copied from interface:FileListFilterFilter a single file; only called externally ifFileListFilter.supportsSingleFileFiltering()returns true.- Specified by:
acceptin interfaceFileListFilter<F>- Overrides:
acceptin classCompositeFileListFilter<F>- Parameters:
file- the file.- Returns:
- true if the file passes the filter, false to filter.
- See Also:
-