Class SFTPFileTransfer.Uploader

  • Enclosing class:
    SFTPFileTransfer

    private class SFTPFileTransfer.Uploader
    extends java.lang.Object
    • Field Detail

      • remote

        private final java.lang.String remote
    • Constructor Detail

      • Uploader

        private Uploader​(LocalSourceFile source,
                         java.lang.String remote)
    • Method Detail

      • upload

        private void upload​(TransferListener listener,
                            long byteOffset)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • upload

        private void upload​(TransferListener listener,
                            LocalSourceFile local,
                            java.lang.String remote,
                            long byteOffset)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • setAttributes

        private void setAttributes​(LocalSourceFile local,
                                   java.lang.String remotePath)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • uploadDir

        private java.lang.String uploadDir​(TransferListener listener,
                                           LocalSourceFile local,
                                           java.lang.String remote)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • uploadFile

        private java.lang.String uploadFile​(StreamCopier.Listener listener,
                                            LocalSourceFile local,
                                            java.lang.String remote,
                                            long byteOffset)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • makeDirIfNotExists

        private boolean makeDirIfNotExists​(java.lang.String remote)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • isDirectory

        private boolean isDirectory​(java.lang.String remote)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • prepareFile

        private java.lang.String prepareFile​(LocalSourceFile local,
                                             java.lang.String remote,
                                             long byteOffset)
                                      throws java.io.IOException
        Throws:
        java.io.IOException