Class SCPUploadClient


  • public class SCPUploadClient
    extends java.lang.Object
    Support for uploading files over a connected link using SCP.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int bandwidthLimit  
      protected net.schmizz.sshj.xfer.scp.SCPEngine engine  
    • Field Detail

      • engine

        protected final net.schmizz.sshj.xfer.scp.SCPEngine engine
      • bandwidthLimit

        protected 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)