Class SCPUploadClient


  • public class SCPUploadClient
    extends AbstractSCPClient
    Support for uploading files over a connected link using SCP.
    • Constructor Detail

      • SCPUploadClient

        SCPUploadClient​(SCPEngine engine)
      • SCPUploadClient

        SCPUploadClient​(SCPEngine engine,
                        int bandwidthLimit)
    • Method Detail

      • copy

        public int copy​(LocalSourceFile sourceFile,
                        java.lang.String remotePath)
                 throws java.io.IOException
        Upload a local file from localFile to targetPath on the remote host.
        Throws:
        java.io.IOException
      • copy

        public int copy​(LocalSourceFile sourceFile,
                        java.lang.String remotePath,
                        ScpCommandLine.EscapeMode escapeMode,
                        boolean preserveTimes)
                 throws java.io.IOException
        Throws:
        java.io.IOException
      • setUploadFilter

        public void setUploadFilter​(LocalFileFilter uploadFilter)
      • startCopy

        private void startCopy​(LocalSourceFile sourceFile,
                               java.lang.String targetPath,
                               ScpCommandLine.EscapeMode escapeMode,
                               boolean preserveTimes)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • process

        private void process​(TransferListener listener,
                             LocalSourceFile f,
                             boolean preserveTimes)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • sendDirectory

        private void sendDirectory​(TransferListener listener,
                                   LocalSourceFile f,
                                   boolean preserveTimes)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • preserveTimeIfPossible

        private void preserveTimeIfPossible​(LocalSourceFile f)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • getPermString

        private java.lang.String getPermString​(LocalSourceFile f)
                                        throws java.io.IOException
        Throws:
        java.io.IOException