Package org.luwrain.io.api.yandex_disk
Class YandexDiskClient
java.lang.Object
org.luwrain.io.api.yandex_disk.YandexDiskClient
- All Implemented Interfaces:
DiskClient
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidgetFileName(String link) intgetFileSize(String link) static YandexDiskClientupload(InputStream in, String filepath)
-
Method Details
-
getInstance
-
upload
public String upload(InputStream in, String filepath) throws IOException, UnauthorizedException, FileIsTooBigException, TooManyRequestsException, UnavailableException - Specified by:
uploadin interfaceDiskClient- Throws:
IOExceptionUnauthorizedExceptionFileIsTooBigExceptionTooManyRequestsExceptionUnavailableException
-
authorize
- Specified by:
authorizein interfaceDiskClient
-
cancelUpload
- Specified by:
cancelUploadin interfaceDiskClient
-
cancelDownload
- Specified by:
cancelDownloadin interfaceDiskClient
-
download
public InputStream download(String link) throws FileNotFoundException, IOException, FileIsTooBigException, TooManyRequestsException, UnavailableException - Specified by:
downloadin interfaceDiskClient- Throws:
FileNotFoundExceptionIOExceptionFileIsTooBigExceptionTooManyRequestsExceptionUnavailableException
-
getFileName
-
getFileSize
-