Package com.sshtools.client.sftp
Interface RegularExpressionMatching
- All Known Implementing Classes:
GlobRegExpMatching,NoRegExpMatching,RegExpMatching
public interface RegularExpressionMatching
Interface for treating a filename as a regular expression and returning the
list of files that match.
-
Method Summary
Modifier and TypeMethodDescriptionString[]matchFileNamesWithPattern(AbstractFile[] files, String fileNameRegExp) returns each of the files that match the pattern fileNameRegExpSftpFile[]matchFilesWithPattern(SftpFile[] files, String fileNameRegExp) returns each of the SftpFiles that match the pattern fileNameRegExp
-
Method Details
-
matchFilesWithPattern
SftpFile[] matchFilesWithPattern(SftpFile[] files, String fileNameRegExp) throws SftpStatusException, SshException returns each of the SftpFiles that match the pattern fileNameRegExp- Parameters:
files-fileNameRegExp-- Returns:
- SftpFile[]
- Throws:
SftpStatusExceptionSshException
-
matchFileNamesWithPattern
String[] matchFileNamesWithPattern(AbstractFile[] files, String fileNameRegExp) throws SftpStatusException, SshException, IOException, PermissionDeniedException returns each of the files that match the pattern fileNameRegExp- Parameters:
files-fileNameRegExp-- Returns:
- String[]
- Throws:
SftpStatusExceptionSshExceptionPermissionDeniedExceptionIOException
-