Class AbstractFileListFilter<F>

java.lang.Object
org.springframework.integration.file.filters.AbstractFileListFilter<F>
Type Parameters:
F - the target protocol file type.
All Implemented Interfaces:
FileListFilter<F>
Direct Known Subclasses:
AbstractDirectoryAwareFileListFilter, AbstractFileLockerFilter, AcceptAllFileListFilter, AcceptOnceFileListFilter, ExpressionFileListFilter, IgnoreHiddenFileListFilter

public abstract class AbstractFileListFilter<F>
extends java.lang.Object
implements FileListFilter<F>
A convenience base class for any FileListFilter whose criteria can be evaluated against each File in isolation. If the entire List of files is required for evaluation, implement the FileListFilter interface directly.
  • Constructor Summary

    Constructors 
    Constructor Description
    AbstractFileListFilter()  
  • Method Summary

    Modifier and Type Method Description
    abstract boolean accept​(F file)
    Subclasses must implement this method.
    java.util.List<F> 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.
    boolean supportsSingleFileFiltering()
    Indicates that this filter supports filtering a single file.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.integration.file.filters.FileListFilter

    isForRecursion