Package io.github.scarecraw22.utils.sftp
Class JschSftpClient
- java.lang.Object
-
- io.github.scarecraw22.utils.sftp.JschSftpClient
-
- All Implemented Interfaces:
SftpClient
public class JschSftpClient extends Object implements SftpClient
-
-
Constructor Summary
Constructors Constructor Description JschSftpClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddownload(String sourcePath, Path destinationFile)voiddownload(String sourcePath, Consumer<InputStream> onDownloadConsumer)voidupload(InputStream inputStream, String destinationPath)voidupload(Path sourceFile, String destinationPath)
-
-
-
Method Detail
-
upload
public void upload(InputStream inputStream, String destinationPath) throws UploadFileSftpException
- Specified by:
uploadin interfaceSftpClient- Throws:
UploadFileSftpException
-
upload
public void upload(Path sourceFile, String destinationPath) throws UploadFileSftpException
- Specified by:
uploadin interfaceSftpClient- Throws:
UploadFileSftpException
-
download
public void download(String sourcePath, Path destinationFile) throws DownloadFileSftpException
- Specified by:
downloadin interfaceSftpClient- Throws:
DownloadFileSftpException
-
download
public void download(String sourcePath, Consumer<InputStream> onDownloadConsumer) throws DownloadFileSftpException
- Specified by:
downloadin interfaceSftpClient- Throws:
DownloadFileSftpException
-
-