public class

SCPFileTransfer

extends AbstractFileTransfer
implements FileTransfer
java.lang.Object
   ↳ net.schmizz.sshj.xfer.AbstractFileTransfer
     ↳ net.schmizz.sshj.xfer.scp.SCPFileTransfer

Summary

Fields
private final SessionFactory sessionFactory
[Expand]
Inherited Fields
From class net.schmizz.sshj.xfer.AbstractFileTransfer
Public Constructors
SCPFileTransfer(SessionFactory sessionFactory)
Public Methods
void download(String remotePath, String localPath)
This is meant to delegate to download(String, LocalDestFile) with the localPath wrapped as e.g.
void download(String remotePath, LocalDestFile localFile)
Download remotePath to localFile.
SCPDownloadClient newSCPDownloadClient()
SCPUploadClient newSCPUploadClient()
void upload(LocalSourceFile localFile, String remotePath)
Upload localFile to remotePath.
void upload(String localPath, String remotePath)
This is meant to delegate to upload(LocalSourceFile, String) with the localPath wrapped as e.g.
[Expand]
Inherited Methods
From class net.schmizz.sshj.xfer.AbstractFileTransfer
From class java.lang.Object
From interface net.schmizz.sshj.xfer.FileTransfer

Fields

private final SessionFactory sessionFactory

Public Constructors

public SCPFileTransfer (SessionFactory sessionFactory)

Parameters
sessionFactory

Public Methods

public void download (String remotePath, String localPath)

This is meant to delegate to download(String, LocalDestFile) with the localPath wrapped as e.g. a FileSystemFile.

Parameters
remotePath
localPath
Throws
IOException

public void download (String remotePath, LocalDestFile localFile)

Download remotePath to localFile.

Parameters
remotePath
localFile
Throws
IOException

public SCPDownloadClient newSCPDownloadClient ()

public SCPUploadClient newSCPUploadClient ()

public void upload (LocalSourceFile localFile, String remotePath)

Upload localFile to remotePath.

Parameters
localFile
remotePath
Throws
IOException

public void upload (String localPath, String remotePath)

This is meant to delegate to upload(LocalSourceFile, String) with the localPath wrapped as e.g. a FileSystemFile.

Parameters
localPath
remotePath
Throws
IOException