public class SFTPFileTransfer extends AbstractFileTransfer implements FileTransfer
log, LOGGING_TRANSFER_LISTENER
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, setTransferListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTransferListener, setTransferListener
public 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
FileTransfer
FileTransfer.upload(LocalSourceFile, String)
with the localPath
wrapped as e.g.
a FileSystemFile
.upload
in interface FileTransfer
java.io.IOException
public void download(java.lang.String source, java.lang.String dest) throws java.io.IOException
FileTransfer
FileTransfer.download(String, LocalDestFile)
with the localPath
wrapped as e.g.
a FileSystemFile
.download
in interface FileTransfer
java.io.IOException
public void upload(LocalSourceFile localFile, java.lang.String remotePath) throws java.io.IOException
FileTransfer
localFile
to remotePath
.upload
in interface FileTransfer
java.io.IOException
public void download(java.lang.String source, LocalDestFile dest) throws java.io.IOException
FileTransfer
remotePath
to localFile
.download
in interface FileTransfer
java.io.IOException
public void setUploadFilter(LocalFileFilter uploadFilter)
public void setDownloadFilter(RemoteResourceFilter downloadFilter)
public LocalFileFilter getUploadFilter()
public RemoteResourceFilter getDownloadFilter()