public class

SFTPFileTransfer

extends AbstractFileTransfer
implements FileTransfer
java.lang.Object
   ↳ net.schmizz.sshj.xfer.AbstractFileTransfer
     ↳ net.schmizz.sshj.sftp.SFTPFileTransfer

Summary

Fields
private RemoteResourceFilter downloadFilter
private final SFTPEngine engine
private boolean preserveAttributes
private LocalFileFilter uploadFilter
[Expand]
Inherited Fields
From class net.schmizz.sshj.xfer.AbstractFileTransfer
Public Constructors
SFTPFileTransfer(SFTPEngine engine)
Public Methods
void download(String source, String dest)
This is meant to delegate to download(String, LocalDestFile) with the localPath wrapped as e.g.
void download(String source, LocalDestFile dest)
Download remotePath to localFile.
RemoteResourceFilter getDownloadFilter()
boolean getPreserveAttributes()
LocalFileFilter getUploadFilter()
void setDownloadFilter(RemoteResourceFilter downloadFilter)
void setPreserveAttributes(boolean preserveAttributes)
void setUploadFilter(LocalFileFilter uploadFilter)
void upload(LocalSourceFile localFile, String remotePath)
Upload localFile to remotePath.
void upload(String source, String dest)
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 RemoteResourceFilter downloadFilter

private final SFTPEngine engine

private boolean preserveAttributes

private LocalFileFilter uploadFilter

Public Constructors

public SFTPFileTransfer (SFTPEngine engine)

Parameters
engine

Public Methods

public void download (String source, String dest)

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

Parameters
source
dest
Throws
IOException

public void download (String source, LocalDestFile dest)

Download remotePath to localFile.

Parameters
source
dest
Throws
IOException

public RemoteResourceFilter getDownloadFilter ()

public boolean getPreserveAttributes ()

public LocalFileFilter getUploadFilter ()

public void setDownloadFilter (RemoteResourceFilter downloadFilter)

Parameters
downloadFilter

public void setPreserveAttributes (boolean preserveAttributes)

Parameters
preserveAttributes

public void setUploadFilter (LocalFileFilter uploadFilter)

Parameters
uploadFilter

public void upload (LocalSourceFile localFile, String remotePath)

Upload localFile to remotePath.

Parameters
localFile
remotePath
Throws
IOException

public void upload (String source, String dest)

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

Parameters
source
dest
Throws
IOException