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

      Modifier and Type Method Description
      int copy​(java.lang.String sourcePath, LocalDestFile targetFile)
      Download a file from sourcePath on the connected host to targetPath locally.
      int copy​(java.lang.String sourcePath, LocalDestFile targetFile, ScpCommandLine.EscapeMode escapeMode)  
      boolean getRecursiveMode()  
      void setRecursiveMode​(boolean recursive)  
      • 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​(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)