Package com.sshtools.client.sftp
Class NoRegExpMatching
java.lang.Object
com.sshtools.client.sftp.NoRegExpMatching
- All Implemented Interfaces:
RegularExpressionMatching
Implements the RegularExpressionMatching Interface.
Performs no regular expression matching so:
matchFilesWithPattern() simply returns the files parameter it is passed as an argument
matchFileNamesWithPattern() simply returns a 1 element array containing the filename on the first element of the file[] argument passed to it.
Performs no regular expression matching so:
matchFilesWithPattern() simply returns the files parameter it is passed as an argument
matchFileNamesWithPattern() simply returns a 1 element array containing the filename on the first element of the file[] argument passed to it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]matchFileNamesWithPattern(AbstractFile[] files, String fileNameRegExp) opens and returns the requested filename stringSftpFile[]matchFilesWithPattern(SftpFile[] files, String fileNameRegExp) returns files
-
Constructor Details
-
NoRegExpMatching
public NoRegExpMatching()
-
-
Method Details
-
matchFileNamesWithPattern
public String[] matchFileNamesWithPattern(AbstractFile[] files, String fileNameRegExp) throws SshException, SftpStatusException, IOException, PermissionDeniedException opens and returns the requested filename string- Specified by:
matchFileNamesWithPatternin interfaceRegularExpressionMatching- Returns:
- String[]
- Throws:
SftpStatusExceptionPermissionDeniedExceptionIOExceptionSshException
-
matchFilesWithPattern
public SftpFile[] matchFilesWithPattern(SftpFile[] files, String fileNameRegExp) throws SftpStatusException, SshException returns files- Specified by:
matchFilesWithPatternin interfaceRegularExpressionMatching- Returns:
- SftpFile[]
- Throws:
SftpStatusExceptionSshException
-