Class SftpRegexPatternFileListFilter
java.lang.Object
org.springframework.integration.file.filters.AbstractFileListFilter<F>
org.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter<F>
org.springframework.integration.file.filters.AbstractRegexPatternFileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
org.springframework.integration.sftp.filters.SftpRegexPatternFileListFilter
- All Implemented Interfaces:
FileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
public class SftpRegexPatternFileListFilter
extends AbstractRegexPatternFileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
Implementation of
AbstractRegexPatternFileListFilter for SFTP.- Since:
- 2.0
- Author:
- Mark Fisher, Gary Russell
-
Constructor Summary
ConstructorsConstructorDescriptionSftpRegexPatternFileListFilter(String pattern) SftpRegexPatternFileListFilter(Pattern pattern) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetFilename(com.jcraft.jsch.ChannelSftp.LsEntry entry) Subclasses must implement this method to extract the file's name.protected booleanisDirectory(com.jcraft.jsch.ChannelSftp.LsEntry 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
-
SftpRegexPatternFileListFilter
-
SftpRegexPatternFileListFilter
-
-
Method Details
-
getFilename
Description copied from class:AbstractRegexPatternFileListFilterSubclasses must implement this method to extract the file's name.- Specified by:
getFilenamein classAbstractRegexPatternFileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>- Parameters:
entry- The file.- Returns:
- The file name.
-
isDirectory
protected boolean isDirectory(com.jcraft.jsch.ChannelSftp.LsEntry file) Description copied from class:AbstractDirectoryAwareFileListFilterSubclasses must implement this method to indicate whether the file is a directory or not.- Specified by:
isDirectoryin classAbstractDirectoryAwareFileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>- Parameters:
file- the file.- Returns:
- true if it's a directory.
-