Package com.sshtools.client.sftp
Class RegExpMatching
java.lang.Object
com.sshtools.client.sftp.RegExpMatching
- All Implemented Interfaces:
RegularExpressionMatching
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
matchFileNamesWithPattern
(com.sshtools.common.files.AbstractFile[] files, String pattern) returns each of the files that match the pattern fileNameRegExpSftpFile[]
matchFilesWithPattern
(SftpFile[] files, String pattern) returns each of the SftpFiles that match the pattern fileNameRegExp
-
Constructor Details
-
RegExpMatching
public RegExpMatching()
-
-
Method Details
-
matchFilesWithPattern
public SftpFile[] matchFilesWithPattern(SftpFile[] files, String pattern) throws com.sshtools.common.sftp.SftpStatusException, com.sshtools.common.ssh.SshException Description copied from interface:RegularExpressionMatching
returns each of the SftpFiles that match the pattern fileNameRegExp- Specified by:
matchFilesWithPattern
in interfaceRegularExpressionMatching
- Returns:
- SftpFile[]
- Throws:
com.sshtools.common.sftp.SftpStatusException
com.sshtools.common.ssh.SshException
-
matchFileNamesWithPattern
public String[] matchFileNamesWithPattern(com.sshtools.common.files.AbstractFile[] files, String pattern) throws com.sshtools.common.sftp.SftpStatusException, com.sshtools.common.ssh.SshException, IOException, com.sshtools.common.permissions.PermissionDeniedException Description copied from interface:RegularExpressionMatching
returns each of the files that match the pattern fileNameRegExp- Specified by:
matchFileNamesWithPattern
in interfaceRegularExpressionMatching
- Returns:
- String[]
- Throws:
com.sshtools.common.sftp.SftpStatusException
com.sshtools.common.ssh.SshException
IOException
com.sshtools.common.permissions.PermissionDeniedException
-