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 TypeMethodDescriptionvoid
void
void
getFileName
(String link) int
getFileSize
(String link) static YandexDiskClient
upload
(InputStream in, String filepath)
-
Method Details
-
getInstance
-
upload
public String upload(InputStream in, String filepath) throws IOException, UnauthorizedException, FileIsTooBigException, TooManyRequestsException, UnavailableException - Specified by:
upload
in interfaceDiskClient
- Throws:
IOException
UnauthorizedException
FileIsTooBigException
TooManyRequestsException
UnavailableException
-
authorize
- Specified by:
authorize
in interfaceDiskClient
-
cancelUpload
- Specified by:
cancelUpload
in interfaceDiskClient
-
cancelDownload
- Specified by:
cancelDownload
in interfaceDiskClient
-
download
public InputStream download(String link) throws FileNotFoundException, IOException, FileIsTooBigException, TooManyRequestsException, UnavailableException - Specified by:
download
in interfaceDiskClient
- Throws:
FileNotFoundException
IOException
FileIsTooBigException
TooManyRequestsException
UnavailableException
-
getFileName
-
getFileSize
-