org.springframework.integration.file
Class AbstractFileListFilter
java.lang.Object
org.springframework.integration.file.AbstractFileListFilter
- All Implemented Interfaces:
- FileListFilter
- Direct Known Subclasses:
- AbstractFileLockerFilter, AcceptOnceFileListFilter, PatternMatchingFileListFilter
public abstract class AbstractFileListFilter
- extends Object
- implements FileListFilter
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.
- Author:
- Mark Fisher, Iwein Fuld
Method Summary |
protected abstract boolean |
accept(File file)
Subclasses must implement this method. |
List<File> |
filterFiles(File[] 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractFileListFilter
public AbstractFileListFilter()
filterFiles
public final List<File> filterFiles(File[] files)
- Filters out files and returns the files that are left in a list, or an
empty list when a null is passed in.
- Specified by:
filterFiles
in interface FileListFilter
accept
protected abstract boolean accept(File file)
- Subclasses must implement this method.
Copyright © 2010. All Rights Reserved.