Class SCPFileTransfer

    • Field Detail

      • DEFAULT_BANDWIDTH_LIMIT

        private static final int DEFAULT_BANDWIDTH_LIMIT
        Default bandwidth limit for SCP transfer in kilobit/s (-1 means unlimited)
        See Also:
        Constant Field Values
      • bandwidthLimit

        private int bandwidthLimit
    • Method Detail

      • newSCPEngine

        private SCPEngine newSCPEngine()
      • download

        public void download​(java.lang.String remotePath,
                             LocalDestFile localFile)
                      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 remotePath,
                             LocalDestFile localFile,
                             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
      • 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
      • checkByteOffsetSupport

        private void checkByteOffsetSupport​(long byteOffset)
                                     throws java.io.IOException
        Throws:
        java.io.IOException