Package io.github.scarecraw22.utils.sftp
Interface SftpClient
-
- All Known Implementing Classes:
JschSftpClient
public interface SftpClient
-
-
Method Summary
All Methods Instance Methods Abstract 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
void upload(InputStream inputStream, String destinationPath) throws UploadFileSftpException
- Throws:
UploadFileSftpException
-
upload
void upload(Path sourceFile, String destinationPath) throws UploadFileSftpException
- Throws:
UploadFileSftpException
-
download
void download(String sourcePath, Path destinationFile) throws DownloadFileSftpException
- Throws:
DownloadFileSftpException
-
download
void download(String sourcePath, Consumer<InputStream> onDownloadConsumer) throws DownloadFileSftpException
- Throws:
DownloadFileSftpException
-
-