public class SFTPFileTransfer extends AbstractFileTransfer implements FileTransfer
log, loggerFactory| Constructor and Description |
|---|
SFTPFileTransfer(SFTPEngine engine) |
| Modifier and Type | Method and Description |
|---|---|
void |
download(java.lang.String source,
LocalDestFile dest)
Download
remotePath to localFile. |
void |
download(java.lang.String source,
java.lang.String dest)
This is meant to delegate to
FileTransfer.download(String, LocalDestFile) with the localPath wrapped as e.g. |
RemoteResourceFilter |
getDownloadFilter() |
boolean |
getPreserveAttributes() |
LocalFileFilter |
getUploadFilter() |
void |
setDownloadFilter(RemoteResourceFilter downloadFilter) |
void |
setPreserveAttributes(boolean preserveAttributes) |
void |
setUploadFilter(LocalFileFilter uploadFilter) |
void |
upload(LocalSourceFile localFile,
java.lang.String remotePath)
Upload
localFile to remotePath. |
void |
upload(java.lang.String source,
java.lang.String dest)
This is meant to delegate to
FileTransfer.upload(LocalSourceFile, String) with the localPath wrapped as e.g. |
getTransferListener, setTransferListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTransferListener, setTransferListenerpublic SFTPFileTransfer(SFTPEngine engine)
public boolean getPreserveAttributes()
public void setPreserveAttributes(boolean preserveAttributes)
public void upload(java.lang.String source,
java.lang.String dest)
throws java.io.IOException
FileTransferFileTransfer.upload(LocalSourceFile, String) with the localPath wrapped as e.g.
a FileSystemFile.upload in interface FileTransferjava.io.IOExceptionpublic void download(java.lang.String source,
java.lang.String dest)
throws java.io.IOException
FileTransferFileTransfer.download(String, LocalDestFile) with the localPath wrapped as e.g.
a FileSystemFile.download in interface FileTransferjava.io.IOExceptionpublic void upload(LocalSourceFile localFile, java.lang.String remotePath) throws java.io.IOException
FileTransferlocalFile to remotePath.upload in interface FileTransferjava.io.IOExceptionpublic void download(java.lang.String source,
LocalDestFile dest)
throws java.io.IOException
FileTransferremotePath to localFile.download in interface FileTransferjava.io.IOExceptionpublic void setUploadFilter(LocalFileFilter uploadFilter)
public void setDownloadFilter(RemoteResourceFilter downloadFilter)
public LocalFileFilter getUploadFilter()
public RemoteResourceFilter getDownloadFilter()