Class SmbRegexPatternFileListFilter
java.lang.Object
org.springframework.integration.file.filters.AbstractFileListFilter<F>
org.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter<F>
org.springframework.integration.file.filters.AbstractRegexPatternFileListFilter<jcifs.smb.SmbFile>
org.springframework.integration.smb.filters.SmbRegexPatternFileListFilter
- All Implemented Interfaces:
FileListFilter<jcifs.smb.SmbFile>
public class SmbRegexPatternFileListFilter
extends AbstractRegexPatternFileListFilter<jcifs.smb.SmbFile>
Implementation of
AbstractRegexPatternFileListFilter for SMB.- Since:
- 6.0
- Author:
- Markus Spann, Prafull Kumar Soni
-
Constructor Summary
ConstructorsConstructorDescriptionSmbRegexPatternFileListFilter(String pattern) SmbRegexPatternFileListFilter(Pattern pattern) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetFilename(jcifs.smb.SmbFile file) Gets the specified SMB file's name.protected booleanisDirectory(jcifs.smb.SmbFile 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
-
SmbRegexPatternFileListFilter
-
SmbRegexPatternFileListFilter
-
-
Method Details
-
getFilename
Gets the specified SMB file's name.- Specified by:
getFilenamein classAbstractRegexPatternFileListFilter<jcifs.smb.SmbFile>- Parameters:
file- SMB file object- Returns:
- file name
- See Also:
-
isDirectory
protected boolean isDirectory(jcifs.smb.SmbFile file) Description copied from class:AbstractDirectoryAwareFileListFilterSubclasses must implement this method to indicate whether the file is a directory or not.- Specified by:
isDirectoryin classAbstractDirectoryAwareFileListFilter<jcifs.smb.SmbFile>- Parameters:
file- the file.- Returns:
- true if it's a directory.
-