Class RegexPatternFileListFilter
java.lang.Object
org.springframework.integration.file.filters.AbstractFileListFilter<F>
org.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter<F>
org.springframework.integration.file.filters.AbstractRegexPatternFileListFilter<File>
org.springframework.integration.file.filters.RegexPatternFileListFilter
- All Implemented Interfaces:
FileListFilter<File>
public class RegexPatternFileListFilter extends AbstractRegexPatternFileListFilter<File>
Implementation of AbstractRegexPatternMatchingFileListFilter for java.io.File instances.
- Author:
- Mark Fisher, Gary Russell
-
Constructor Summary
Constructors Constructor Description RegexPatternFileListFilter(String pattern)RegexPatternFileListFilter(Pattern pattern) -
Method Summary
Modifier and Type Method Description protected StringgetFilename(File file)Subclasses must implement this method to extract the file's name.protected booleanisDirectory(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.AbstractRegexPatternFileListFilter
accept, setPattern, setPatternMethods inherited from class org.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter
alwaysAccept, setAlwaysAcceptDirectoriesMethods inherited from class org.springframework.integration.file.filters.AbstractFileListFilter
filterFiles, supportsSingleFileFiltering
-
Constructor Details
-
Method Details
-
getFilename
Description copied from class:AbstractRegexPatternFileListFilterSubclasses must implement this method to extract the file's name.- Specified by:
getFilenamein classAbstractRegexPatternFileListFilter<File>- Parameters:
file- The file.- Returns:
- The file name.
-
isDirectory
Description copied from class:AbstractDirectoryAwareFileListFilterSubclasses must implement this method to indicate whether the file is a directory or not.- Specified by:
isDirectoryin classAbstractDirectoryAwareFileListFilter<File>- Parameters:
file- the file.- Returns:
- true if it's a directory.
-