Package com.sshtools.client.sftp
Class GlobRegExpMatching
java.lang.Object
com.sshtools.client.sftp.GlobRegExpMatching
- All Implemented Interfaces:
RegularExpressionMatching
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]matchFileNamesWithPattern(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
-
GlobRegExpMatching
public GlobRegExpMatching()
-
-
Method Details
-
matchFilesWithPattern
public SftpFile[] matchFilesWithPattern(SftpFile[] files, String pattern) throws SftpStatusException, SshException Description copied from interface:RegularExpressionMatchingreturns each of the SftpFiles that match the pattern fileNameRegExp- Specified by:
matchFilesWithPatternin interfaceRegularExpressionMatching- Returns:
- SftpFile[]
- Throws:
SftpStatusExceptionSshException
-
matchFileNamesWithPattern
public String[] matchFileNamesWithPattern(AbstractFile[] files, String pattern) throws SftpStatusException, SshException, IOException, PermissionDeniedException Description copied from interface:RegularExpressionMatchingreturns each of the files that match the pattern fileNameRegExp- Specified by:
matchFileNamesWithPatternin interfaceRegularExpressionMatching- Returns:
- String[]
- Throws:
SftpStatusExceptionSshExceptionIOExceptionPermissionDeniedException
-