Class SFTPFileTransfer

    • Constructor Detail

      • SFTPFileTransfer

        public SFTPFileTransfer​(SFTPEngine engine)
    • Method Detail

      • getPreserveAttributes

        public boolean getPreserveAttributes()
      • setPreserveAttributes

        public void setPreserveAttributes​(boolean preserveAttributes)
      • upload

        public void upload​(LocalSourceFile localFile,
                           java.lang.String remotePath)
                    throws java.io.IOException
        Description copied from interface: FileTransfer
        Upload localFile to remotePath.
        Specified by:
        upload in interface FileTransfer
        Throws:
        java.io.IOException
      • upload

        public void upload​(LocalSourceFile localFile,
                           java.lang.String remotePath,
                           long byteOffset)
                    throws java.io.IOException
        Description copied from interface: FileTransfer
        Upload localFile to remotePath. Appends to existing if byteOffset > 0.
        Specified by:
        upload in interface FileTransfer
        Throws:
        java.io.IOException
      • download

        public void download​(java.lang.String source,
                             LocalDestFile dest)
                      throws java.io.IOException
        Description copied from interface: FileTransfer
        Download remotePath to localFile.
        Specified by:
        download in interface FileTransfer
        Throws:
        java.io.IOException
      • download

        public void download​(java.lang.String source,
                             LocalDestFile dest,
                             long byteOffset)
                      throws java.io.IOException
        Description copied from interface: FileTransfer
        Download remotePath to localFile. Appends to existing if byteOffset > 0.
        Specified by:
        download in interface FileTransfer
        Throws:
        java.io.IOException
      • setUploadFilter

        public void setUploadFilter​(LocalFileFilter uploadFilter)