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
 String[] matchFileNamesWithPattern(File[] files, String fileNameRegExp)
          returns each of the files that match the pattern fileNameRegExp
 SftpFile[] matchFilesWithPattern(SftpFile[] files, String fileNameRegExp)
          returns each of the SftpFiles that match the pattern fileNameRegExp
 

Method Detail

matchFilesWithPattern

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

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

matchFileNamesWithPattern

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

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


Copyright © 2012. All Rights Reserved.