Class SmbRegexPatternFileListFilter
java.lang.Object
org.springframework.integration.file.filters.AbstractFileListFilter<org.codelibs.jcifs.smb.impl.SmbFile>
org.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter<org.codelibs.jcifs.smb.impl.SmbFile>
org.springframework.integration.file.filters.AbstractRegexPatternFileListFilter<org.codelibs.jcifs.smb.impl.SmbFile>
org.springframework.integration.smb.filters.SmbRegexPatternFileListFilter
- All Implemented Interfaces:
FileListFilter<org.codelibs.jcifs.smb.impl.SmbFile>
public class SmbRegexPatternFileListFilter
extends AbstractRegexPatternFileListFilter<org.codelibs.jcifs.smb.impl.SmbFile>
Implementation of
AbstractRegexPatternFileListFilter for SMB.- Since:
- 6.0
- Author:
- Markus Spann, Prafull Kumar Soni, Daniel Frey
-
Constructor Summary
ConstructorsConstructorDescriptionSmbRegexPatternFileListFilter(String pattern) SmbRegexPatternFileListFilter(Pattern pattern) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetFilename(org.codelibs.jcifs.smb.impl.SmbFile file) Gets the specified SMB file's name.protected booleanisDirectory(org.codelibs.jcifs.smb.impl.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<org.codelibs.jcifs.smb.impl.SmbFile>- Parameters:
file- SMB file object- Returns:
- file name
- See Also:
-
isDirectory
protected boolean isDirectory(org.codelibs.jcifs.smb.impl.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<org.codelibs.jcifs.smb.impl.SmbFile>- Parameters:
file- the file.- Returns:
- true if it's a directory.
-