Class GlobRegExpMatching

java.lang.Object
com.sshtools.client.sftp.GlobRegExpMatching
All Implemented Interfaces:
RegularExpressionMatching

public class GlobRegExpMatching extends Object implements RegularExpressionMatching
  • Constructor Details

    • GlobRegExpMatching

      public GlobRegExpMatching()
  • Method Details

    • matchFilesWithPattern

      public SftpFile[] matchFilesWithPattern(SftpFile[] files, String pattern) throws com.sshtools.common.sftp.SftpStatusException, com.sshtools.common.ssh.SshException
      Description copied from interface: RegularExpressionMatching
      returns each of the SftpFiles that match the pattern fileNameRegExp
      Specified by:
      matchFilesWithPattern in interface RegularExpressionMatching
      Returns:
      SftpFile[]
      Throws:
      com.sshtools.common.sftp.SftpStatusException
      com.sshtools.common.ssh.SshException
    • matchFileNamesWithPattern

      public String[] matchFileNamesWithPattern(com.sshtools.common.files.AbstractFile[] files, String pattern) throws com.sshtools.common.sftp.SftpStatusException, com.sshtools.common.ssh.SshException, IOException, com.sshtools.common.permissions.PermissionDeniedException
      Description copied from interface: RegularExpressionMatching
      returns each of the files that match the pattern fileNameRegExp
      Specified by:
      matchFileNamesWithPattern in interface RegularExpressionMatching
      Returns:
      String[]
      Throws:
      com.sshtools.common.sftp.SftpStatusException
      com.sshtools.common.ssh.SshException
      IOException
      com.sshtools.common.permissions.PermissionDeniedException