com.sshtools.sftp
Class NoRegExpMatching
java.lang.Object
com.sshtools.sftp.NoRegExpMatching
- All Implemented Interfaces:
- RegularExpressionMatching
- public class NoRegExpMatching
- extends java.lang.Object
- implements 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoRegExpMatching
public NoRegExpMatching()
matchFileNamesWithPattern
public java.lang.String[] matchFileNamesWithPattern(java.io.File[] files,
java.lang.String fileNameRegExp)
throws SshException,
SftpStatusException
- opens and returns the requested filename string
- Specified by:
matchFileNamesWithPattern in interface RegularExpressionMatching
- Parameters:
files - fileNameRegExp -
- Returns:
- String[]
- Throws:
SftpStatusException
SshException
matchFilesWithPattern
public SftpFile[] matchFilesWithPattern(SftpFile[] files,
java.lang.String fileNameRegExp)
throws SftpStatusException,
SshException
- returns files
- Specified by:
matchFilesWithPattern in interface RegularExpressionMatching
- Parameters:
files - fileNameRegExp -
- Returns:
- SftpFile[]
- Throws:
SftpStatusException
SshException
Copyright © 2003-2008 SSHTools LTD. All Rights Reserved.