Class SimplePatternFileListFilter
java.lang.Object
org.springframework.integration.file.filters.AbstractFileListFilter<F>
org.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter<F>
org.springframework.integration.file.filters.AbstractSimplePatternFileListFilter<File>
org.springframework.integration.file.filters.SimplePatternFileListFilter
- All Implemented Interfaces:
FileListFilter<File>
public class SimplePatternFileListFilter extends AbstractSimplePatternFileListFilter<File>
Filter that supports ant style path expressions, which are less powerful but more readable than regular expressions.
This filter only filters on the name of the file, the rest of the path is ignored.
- Since:
- 2.0
- Author:
- Mark Fisher, Gary Russell
-
Constructor Summary
Constructors Constructor Description SimplePatternFileListFilter(String path)
-
Method Summary
Modifier and Type Method Description protected String
getFilename(File file)
Subclasses must implement this method to extract the file's name.protected boolean
isDirectory(File file)
Subclasses must implement this method to indicate whether the file is a directory or not.Methods inherited from class org.springframework.integration.file.filters.AbstractSimplePatternFileListFilter
accept
Methods inherited from class org.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter
alwaysAccept, isForRecursion, setAlwaysAcceptDirectories, setForRecursion
Methods inherited from class org.springframework.integration.file.filters.AbstractFileListFilter
filterFiles, supportsSingleFileFiltering
-
Constructor Details
-
Method Details
-
getFilename
Description copied from class:AbstractSimplePatternFileListFilter
Subclasses must implement this method to extract the file's name.- Specified by:
getFilename
in classAbstractSimplePatternFileListFilter<File>
- Parameters:
file
- The file.- Returns:
- The file name.
-
isDirectory
Description copied from class:AbstractDirectoryAwareFileListFilter
Subclasses must implement this method to indicate whether the file is a directory or not.- Specified by:
isDirectory
in classAbstractDirectoryAwareFileListFilter<File>
- Parameters:
file
- the file.- Returns:
- true if it's a directory.
-