public final class

SCPDownloadClient

extends Object
java.lang.Object
   ↳ net.schmizz.sshj.xfer.scp.SCPDownloadClient

Class Overview

Support for uploading files over a connected link using SCP.

Summary

Fields
private final SCPEngine engine
private boolean recursiveMode
Public Methods
synchronized int copy(String sourcePath, LocalDestFile targetFile)
Download a file from sourcePath on the connected host to targetPath locally.
boolean getRecursiveMode()
void setRecursiveMode(boolean recursive)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private final SCPEngine engine

private boolean recursiveMode

Public Methods

public synchronized int copy (String sourcePath, LocalDestFile targetFile)

Download a file from sourcePath on the connected host to targetPath locally.

Parameters
sourcePath
targetFile
Throws
IOException

public boolean getRecursiveMode ()

public void setRecursiveMode (boolean recursive)

Parameters
recursive