Class SCPDownloadClient


  • public class SCPDownloadClient
    extends java.lang.Object
    Support for downloading 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​(java.lang.String sourcePath,
                        LocalDestFile targetFile)
                 throws java.io.IOException
        Download a file from sourcePath on the connected host to targetPath locally.
        Throws:
        java.io.IOException
      • getRecursiveMode

        public boolean getRecursiveMode()
      • setRecursiveMode

        public void setRecursiveMode​(boolean recursive)