com.sshtools.sftp
Class NoRegExpMatching

java.lang.Object
  extended by 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.


Constructor Summary
NoRegExpMatching()
           
 
Method Summary
 java.lang.String[] matchFileNamesWithPattern(java.io.File[] files, java.lang.String fileNameRegExp)
          opens and returns the requested filename string
 SftpFile[] matchFilesWithPattern(SftpFile[] files, java.lang.String fileNameRegExp)
          returns files
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoRegExpMatching

public NoRegExpMatching()
Method Detail

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
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
Returns:
SftpFile[]
Throws:
SftpStatusException
SshException


Copyright © 2003-2008 SSHTools LTD. All Rights Reserved.