Interface RegularExpressionMatching

All Known Implementing Classes:
GlobRegExpMatching, NoRegExpMatching, RegExpMatching

public interface RegularExpressionMatching
Interface for treating a filename as a regular expression and returning the list of files that match.
  • Method Summary

    Modifier and Type
    Method
    Description
    matchFileNamesWithPattern(com.sshtools.common.files.AbstractFile[] files, String fileNameRegExp)
    returns each of the files that match the pattern fileNameRegExp
    matchFilesWithPattern(SftpFile[] files, String fileNameRegExp)
    returns each of the SftpFiles that match the pattern fileNameRegExp
  • Method Details

    • matchFilesWithPattern

      SftpFile[] matchFilesWithPattern(SftpFile[] files, String fileNameRegExp) throws com.sshtools.common.sftp.SftpStatusException, com.sshtools.common.ssh.SshException
      returns each of the SftpFiles that match the pattern fileNameRegExp
      Parameters:
      files -
      fileNameRegExp -
      Returns:
      SftpFile[]
      Throws:
      com.sshtools.common.sftp.SftpStatusException
      com.sshtools.common.ssh.SshException
    • matchFileNamesWithPattern

      String[] matchFileNamesWithPattern(com.sshtools.common.files.AbstractFile[] files, String fileNameRegExp) throws com.sshtools.common.sftp.SftpStatusException, com.sshtools.common.ssh.SshException, IOException, com.sshtools.common.permissions.PermissionDeniedException
      returns each of the files that match the pattern fileNameRegExp
      Parameters:
      files -
      fileNameRegExp -
      Returns:
      String[]
      Throws:
      com.sshtools.common.sftp.SftpStatusException
      com.sshtools.common.ssh.SshException
      com.sshtools.common.permissions.PermissionDeniedException
      IOException