Interface ScpClient

    • Field Detail

      • DEFAULT_EXEC_CHANNEL_OPEN_TIMEOUT

        static final long DEFAULT_EXEC_CHANNEL_OPEN_TIMEOUT
      • SCP_EXEC_CHANNEL_EXIT_STATUS_TIMEOUT

        static final java.lang.String SCP_EXEC_CHANNEL_EXIT_STATUS_TIMEOUT
        Configurable value of the FactoryManager for controlling the wait timeout for waiting on a channel exit status' for an SCP command in milliseconds. If not specified, then DEFAULT_EXEC_CHANNEL_EXIT_STATUS_TIMEOUT value is used. If non-positive, then no wait is performed and the command is assumed to have completed successfully.
        See Also:
        Constant Field Values
      • DEFAULT_EXEC_CHANNEL_EXIT_STATUS_TIMEOUT

        static final long DEFAULT_EXEC_CHANNEL_EXIT_STATUS_TIMEOUT
    • Method Detail

      • download

        default void download​(java.lang.String remote,
                              java.lang.String local,
                              ScpClient.Option... options)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • download

        void download​(java.lang.String remote,
                      java.lang.String local,
                      java.util.Collection<ScpClient.Option> options)
               throws java.io.IOException
        Throws:
        java.io.IOException
      • download

        default void download​(java.lang.String remote,
                              java.nio.file.Path local,
                              ScpClient.Option... options)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • download

        void download​(java.lang.String remote,
                      java.nio.file.Path local,
                      java.util.Collection<ScpClient.Option> options)
               throws java.io.IOException
        Throws:
        java.io.IOException
      • download

        void download​(java.lang.String remote,
                      java.io.OutputStream local)
               throws java.io.IOException
        Throws:
        java.io.IOException
      • downloadBytes

        default byte[] downloadBytes​(java.lang.String remote)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • download

        default void download​(java.lang.String[] remote,
                              java.lang.String local,
                              ScpClient.Option... options)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • download

        default void download​(java.lang.String[] remote,
                              java.nio.file.Path local,
                              ScpClient.Option... options)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • download

        void download​(java.lang.String[] remote,
                      java.lang.String local,
                      java.util.Collection<ScpClient.Option> options)
               throws java.io.IOException
        Throws:
        java.io.IOException
      • download

        void download​(java.lang.String[] remote,
                      java.nio.file.Path local,
                      java.util.Collection<ScpClient.Option> options)
               throws java.io.IOException
        Throws:
        java.io.IOException
      • upload

        default void upload​(java.lang.String local,
                            java.lang.String remote,
                            ScpClient.Option... options)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • upload

        default void upload​(java.lang.String local,
                            java.lang.String remote,
                            java.util.Collection<ScpClient.Option> options)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • upload

        default void upload​(java.nio.file.Path local,
                            java.lang.String remote,
                            ScpClient.Option... options)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • upload

        default void upload​(java.nio.file.Path local,
                            java.lang.String remote,
                            java.util.Collection<ScpClient.Option> options)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • upload

        default void upload​(java.lang.String[] local,
                            java.lang.String remote,
                            ScpClient.Option... options)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • upload

        void upload​(java.lang.String[] local,
                    java.lang.String remote,
                    java.util.Collection<ScpClient.Option> options)
             throws java.io.IOException
        Throws:
        java.io.IOException
      • upload

        default void upload​(java.nio.file.Path[] local,
                            java.lang.String remote,
                            ScpClient.Option... options)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • upload

        void upload​(java.nio.file.Path[] local,
                    java.lang.String remote,
                    java.util.Collection<ScpClient.Option> options)
             throws java.io.IOException
        Throws:
        java.io.IOException
      • upload

        default void upload​(byte[] data,
                            java.lang.String remote,
                            java.util.Collection<java.nio.file.attribute.PosixFilePermission> perms,
                            ScpTimestamp time)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • upload

        default void upload​(byte[] data,
                            int offset,
                            int len,
                            java.lang.String remote,
                            java.util.Collection<java.nio.file.attribute.PosixFilePermission> perms,
                            ScpTimestamp time)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • upload

        void upload​(java.io.InputStream local,
                    java.lang.String remote,
                    long size,
                    java.util.Collection<java.nio.file.attribute.PosixFilePermission> perms,
                    ScpTimestamp time)
             throws java.io.IOException
        Throws:
        java.io.IOException
      • createSendCommand

        static java.lang.String createSendCommand​(java.lang.String remote,
                                                  java.util.Collection<ScpClient.Option> options)
      • createReceiveCommand

        static java.lang.String createReceiveCommand​(java.lang.String remote,
                                                     java.util.Collection<ScpClient.Option> options)