Class SCPDownloadClient
java.lang.Object
net.schmizz.sshj.xfer.scp.SCPDownloadClient
Support for downloading files over a connected link using SCP.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected final net.schmizz.sshj.xfer.scp.SCPEngine -
Method Summary
Modifier and TypeMethodDescriptionintcopy(String sourcePath, LocalDestFile targetFile) Download a file fromsourcePathon the connected host totargetPathlocally.intcopy(String sourcePath, LocalDestFile targetFile, ScpCommandLine.EscapeMode escapeMode) intcopy(String sourcePath, LocalDestFile targetFile, ScpCommandLine.EscapeMode escapeMode, ScpCommandLine commandLine) booleanvoidsetRecursiveMode(boolean recursive)
-
Field Details
-
engine
protected final net.schmizz.sshj.xfer.scp.SCPEngine engine -
bandwidthLimit
protected int bandwidthLimit
-
-
Method Details
-
copy
Download a file fromsourcePathon the connected host totargetPathlocally.- Throws:
IOException
-
copy
public int copy(String sourcePath, LocalDestFile targetFile, ScpCommandLine.EscapeMode escapeMode) throws IOException - Throws:
IOException
-
copy
public int copy(String sourcePath, LocalDestFile targetFile, ScpCommandLine.EscapeMode escapeMode, ScpCommandLine commandLine) throws IOException - Throws:
IOException
-
getRecursiveMode
public boolean getRecursiveMode() -
setRecursiveMode
public void setRecursiveMode(boolean recursive)
-