com.sshtools.sftp
Interface RegularExpressionMatching

All Known Implementing Classes:
GlobRegExpMatching, NoRegExpMatching, Perl5RegExpMatching

public interface RegularExpressionMatching

Interface for treating a filename as a regular expression and returning the list of files that match.

Author:
David Hodgins

Method Summary
 java.lang.String[] matchFileNamesWithPattern(java.io.File[] files, java.lang.String fileNameRegExp)
          returns each of the files that match the pattern fileNameRegExp
 SftpFile[] matchFilesWithPattern(SftpFile[] files, java.lang.String fileNameRegExp)
          returns each of the SftpFiles that match the pattern fileNameRegExp
 

Method Detail

matchFilesWithPattern

public SftpFile[] matchFilesWithPattern(SftpFile[] files,
                                        java.lang.String fileNameRegExp)
                                 throws SftpStatusException,
                                        SshException
returns each of the SftpFiles that match the pattern fileNameRegExp

Parameters:
files -
fileNameRegExp -
Returns:
SftpFile[]
Throws:
SftpStatusException
SshException

matchFileNamesWithPattern

public java.lang.String[] matchFileNamesWithPattern(java.io.File[] files,
                                                    java.lang.String fileNameRegExp)
                                             throws SftpStatusException,
                                                    SshException
returns each of the files that match the pattern fileNameRegExp

Parameters:
files -
fileNameRegExp -
Returns:
String[]
Throws:
SftpStatusException
SshException


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