Class StatefulSFTPClient

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class StatefulSFTPClient
    extends SFTPClient
    • Constructor Detail

      • StatefulSFTPClient

        public StatefulSFTPClient​(SFTPEngine engine)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • StatefulSFTPClient

        public StatefulSFTPClient​(SessionFactory sessionFactory)
                           throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • cd

        public void cd​(java.lang.String dirname)
                throws java.io.IOException
        Throws:
        java.io.IOException
      • ls

        public java.util.List<RemoteResourceInfo> ls()
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • pwd

        public java.lang.String pwd()
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • ls

        public java.util.List<RemoteResourceInfo> ls​(java.lang.String path)
                                              throws java.io.IOException
        Overrides:
        ls in class SFTPClient
        Throws:
        java.io.IOException
      • open

        public RemoteFile open​(java.lang.String filename,
                               java.util.Set<OpenMode> mode)
                        throws java.io.IOException
        Overrides:
        open in class SFTPClient
        Throws:
        java.io.IOException
      • open

        public RemoteFile open​(java.lang.String filename)
                        throws java.io.IOException
        Overrides:
        open in class SFTPClient
        Throws:
        java.io.IOException
      • mkdir

        public void mkdir​(java.lang.String dirname)
                   throws java.io.IOException
        Overrides:
        mkdir in class SFTPClient
        Throws:
        java.io.IOException
      • mkdirs

        public void mkdirs​(java.lang.String path)
                    throws java.io.IOException
        Overrides:
        mkdirs in class SFTPClient
        Throws:
        java.io.IOException
      • rename

        public void rename​(java.lang.String oldpath,
                           java.lang.String newpath,
                           java.util.Set<RenameFlags> renameFlags)
                    throws java.io.IOException
        Overrides:
        rename in class SFTPClient
        Throws:
        java.io.IOException
      • rm

        public void rm​(java.lang.String filename)
                throws java.io.IOException
        Overrides:
        rm in class SFTPClient
        Throws:
        java.io.IOException
      • rmdir

        public void rmdir​(java.lang.String dirname)
                   throws java.io.IOException
        Overrides:
        rmdir in class SFTPClient
        Throws:
        java.io.IOException
      • symlink

        public void symlink​(java.lang.String linkpath,
                            java.lang.String targetpath)
                     throws java.io.IOException
        Overrides:
        symlink in class SFTPClient
        Throws:
        java.io.IOException
      • setattr

        public void setattr​(java.lang.String path,
                            FileAttributes attrs)
                     throws java.io.IOException
        Overrides:
        setattr in class SFTPClient
        Throws:
        java.io.IOException
      • readlink

        public java.lang.String readlink​(java.lang.String path)
                                  throws java.io.IOException
        Overrides:
        readlink in class SFTPClient
        Throws:
        java.io.IOException
      • stat

        public FileAttributes stat​(java.lang.String path)
                            throws java.io.IOException
        Overrides:
        stat in class SFTPClient
        Throws:
        java.io.IOException
      • lstat

        public FileAttributes lstat​(java.lang.String path)
                             throws java.io.IOException
        Overrides:
        lstat in class SFTPClient
        Throws:
        java.io.IOException
      • truncate

        public void truncate​(java.lang.String path,
                             long size)
                      throws java.io.IOException
        Overrides:
        truncate in class SFTPClient
        Throws:
        java.io.IOException
      • canonicalize

        public java.lang.String canonicalize​(java.lang.String path)
                                      throws java.io.IOException
        Overrides:
        canonicalize in class SFTPClient
        Throws:
        java.io.IOException
      • get

        public void get​(java.lang.String source,
                        java.lang.String dest)
                 throws java.io.IOException
        Overrides:
        get in class SFTPClient
        Throws:
        java.io.IOException
      • get

        public void get​(java.lang.String source,
                        LocalDestFile dest)
                 throws java.io.IOException
        Overrides:
        get in class SFTPClient
        Throws:
        java.io.IOException
      • put

        public void put​(java.lang.String source,
                        java.lang.String dest)
                 throws java.io.IOException
        Overrides:
        put in class SFTPClient
        Throws:
        java.io.IOException
      • put

        public void put​(LocalSourceFile source,
                        java.lang.String dest)
                 throws java.io.IOException
        Overrides:
        put in class SFTPClient
        Throws:
        java.io.IOException