Class FtpRegexPatternFileListFilter
java.lang.Object
org.springframework.integration.file.filters.AbstractFileListFilter<F>
org.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter<F>
org.springframework.integration.file.filters.AbstractRegexPatternFileListFilter<org.apache.commons.net.ftp.FTPFile>
org.springframework.integration.ftp.filters.FtpRegexPatternFileListFilter
- All Implemented Interfaces:
FileListFilter<org.apache.commons.net.ftp.FTPFile>
public class FtpRegexPatternFileListFilter
extends AbstractRegexPatternFileListFilter<org.apache.commons.net.ftp.FTPFile>
Implementation of
AbstractRegexPatternFileListFilter for FTP.- Since:
- 2.0
- Author:
- Mark Fisher, Gary Russell
-
Constructor Summary
ConstructorsConstructorDescriptionFtpRegexPatternFileListFilter(String pattern) FtpRegexPatternFileListFilter(Pattern pattern) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetFilename(org.apache.commons.net.ftp.FTPFile file) Subclasses must implement this method to extract the file's name.protected booleanisDirectory(org.apache.commons.net.ftp.FTPFile 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, isForRecursion, setAlwaysAcceptDirectories, setForRecursionMethods inherited from class org.springframework.integration.file.filters.AbstractFileListFilter
filterFiles, supportsSingleFileFiltering
-
Constructor Details
-
FtpRegexPatternFileListFilter
-
FtpRegexPatternFileListFilter
-
-
Method Details
-
getFilename
Description copied from class:AbstractRegexPatternFileListFilterSubclasses must implement this method to extract the file's name.- Specified by:
getFilenamein classAbstractRegexPatternFileListFilter<org.apache.commons.net.ftp.FTPFile>- Parameters:
file- The file.- Returns:
- The file name.
-
isDirectory
protected boolean isDirectory(org.apache.commons.net.ftp.FTPFile file) Description copied from class:AbstractDirectoryAwareFileListFilterSubclasses must implement this method to indicate whether the file is a directory or not.- Specified by:
isDirectoryin classAbstractDirectoryAwareFileListFilter<org.apache.commons.net.ftp.FTPFile>- Parameters:
file- the file.- Returns:
- true if it's a directory.
-