Package net.schmizz.sshj.xfer.scp
Class SCPDownloadClient
- java.lang.Object
-
- net.schmizz.sshj.xfer.scp.SCPDownloadClient
-
public class SCPDownloadClient extends java.lang.ObjectSupport for downloading files over a connected link using SCP.
-
-
Field Summary
Fields Modifier and Type Field Description protected intbandwidthLimitprotected net.schmizz.sshj.xfer.scp.SCPEngineengine
-
Method Summary
Modifier and Type Method Description intcopy(java.lang.String sourcePath, LocalDestFile targetFile)Download a file fromsourcePathon the connected host totargetPathlocally.intcopy(java.lang.String sourcePath, LocalDestFile targetFile, ScpCommandLine.EscapeMode escapeMode)booleangetRecursiveMode()voidsetRecursiveMode(boolean recursive)
-
-
-
Method Detail
-
copy
public int copy(java.lang.String sourcePath, LocalDestFile targetFile) throws java.io.IOExceptionDownload a file fromsourcePathon the connected host totargetPathlocally.- Throws:
java.io.IOException
-
copy
public int copy(java.lang.String sourcePath, LocalDestFile targetFile, ScpCommandLine.EscapeMode escapeMode) throws java.io.IOException- Throws:
java.io.IOException
-
getRecursiveMode
public boolean getRecursiveMode()
-
setRecursiveMode
public void setRecursiveMode(boolean recursive)
-
-