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  
    • Method Summary

      Modifier and Type Method Description
      int copy​(LocalSourceFile sourceFile, java.lang.String remotePath)
      Upload a local file from localFile to targetPath on the remote host.
      int copy​(LocalSourceFile sourceFile, java.lang.String remotePath, ScpCommandLine.EscapeMode escapeMode)  
      void setUploadFilter​(LocalFileFilter uploadFilter)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
      • setUploadFilter

        public void setUploadFilter​(LocalFileFilter uploadFilter)