Package net.schmizz.sshj.sftp
Class SFTPFileTransfer
java.lang.Object
net.schmizz.sshj.xfer.AbstractFileTransfer
net.schmizz.sshj.sftp.SFTPFileTransfer
- All Implemented Interfaces:
FileTransfer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate RemoteResourceFilterprivate final SFTPEngineprivate booleanprivate LocalFileFilterFields inherited from class net.schmizz.sshj.xfer.AbstractFileTransfer
log, loggerFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis is meant to delegate toFileTransfer.download(String, LocalDestFile)with thelocalPathwrapped as e.g.voidThis is meant to delegate toFileTransfer.download(String, LocalDestFile)with thelocalPathwrapped as e.g.voiddownload(String source, LocalDestFile dest) DownloadremotePathtolocalFile.voiddownload(String source, LocalDestFile dest, long byteOffset) DownloadremotePathtolocalFile.booleanvoidsetDownloadFilter(RemoteResourceFilter downloadFilter) voidsetPreserveAttributes(boolean preserveAttributes) voidsetUploadFilter(LocalFileFilter uploadFilter) voidThis is meant to delegate toFileTransfer.upload(LocalSourceFile, String)with thelocalPathwrapped as e.g.voidThis is meant to delegate toFileTransfer.upload(LocalSourceFile, String)with thelocalPathwrapped as e.g.voidupload(LocalSourceFile localFile, String remotePath) UploadlocalFiletoremotePath.voidupload(LocalSourceFile localFile, String remotePath, long byteOffset) UploadlocalFiletoremotePath.Methods inherited from class net.schmizz.sshj.xfer.AbstractFileTransfer
getTransferListener, setTransferListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.schmizz.sshj.xfer.FileTransfer
getTransferListener, setTransferListener
-
Field Details
-
engine
-
uploadFilter
-
downloadFilter
-
preserveAttributes
private volatile boolean preserveAttributes
-
-
Constructor Details
-
SFTPFileTransfer
-
-
Method Details
-
getPreserveAttributes
public boolean getPreserveAttributes() -
setPreserveAttributes
public void setPreserveAttributes(boolean preserveAttributes) -
upload
Description copied from interface:FileTransferThis is meant to delegate toFileTransfer.upload(LocalSourceFile, String)with thelocalPathwrapped as e.g. aFileSystemFile.- Specified by:
uploadin interfaceFileTransfer- Parameters:
source-dest-- Throws:
IOException
-
upload
Description copied from interface:FileTransferThis is meant to delegate toFileTransfer.upload(LocalSourceFile, String)with thelocalPathwrapped as e.g. aFileSystemFile. Appends to existing ifbyteOffset> 0.- Specified by:
uploadin interfaceFileTransfer- Parameters:
source-dest-byteOffset-- Throws:
IOException
-
download
Description copied from interface:FileTransferThis is meant to delegate toFileTransfer.download(String, LocalDestFile)with thelocalPathwrapped as e.g. aFileSystemFile.- Specified by:
downloadin interfaceFileTransfer- Parameters:
source-dest-- Throws:
IOException
-
download
Description copied from interface:FileTransferThis is meant to delegate toFileTransfer.download(String, LocalDestFile)with thelocalPathwrapped as e.g. aFileSystemFile. Appends to existing ifbyteOffset> 0.- Specified by:
downloadin interfaceFileTransfer- Parameters:
source-dest-byteOffset-- Throws:
IOException
-
upload
Description copied from interface:FileTransferUploadlocalFiletoremotePath.- Specified by:
uploadin interfaceFileTransfer- Parameters:
localFile-remotePath-- Throws:
IOException
-
upload
public void upload(LocalSourceFile localFile, String remotePath, long byteOffset) throws IOException Description copied from interface:FileTransferUploadlocalFiletoremotePath. Appends to existing ifbyteOffset> 0.- Specified by:
uploadin interfaceFileTransfer- Parameters:
localFile-remotePath-byteOffset-- Throws:
IOException
-
download
Description copied from interface:FileTransferDownloadremotePathtolocalFile.- Specified by:
downloadin interfaceFileTransfer- Parameters:
source-dest-- Throws:
IOException
-
download
Description copied from interface:FileTransferDownloadremotePathtolocalFile. Appends to existing ifbyteOffset> 0.- Specified by:
downloadin interfaceFileTransfer- Parameters:
source-dest-byteOffset-- Throws:
IOException
-
setUploadFilter
-
setDownloadFilter
-
getUploadFilter
-
getDownloadFilter
-