| com.pspdfkit.document.download.source.DownloadSource |
Known Indirect Subclasses
|
A remote PDF resource that can be downloaded by the DownloadJob.
Implementation could be a file served from a content provider, or a file on the web.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| long | UNKNOWN_DOWNLOAD_SIZE | Constant value used when the total size of a download is not known. | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract long |
getLength()
Returns the total length of the download.
| ||||||||||
| abstract InputStream |
open()
Opens an
InputStream for downloading the document. | ||||||||||
Constant value used when the total size of a download is not known.
Returns the total length of the download. This is optional and only used for calculating the Progress during download.
UNKNOWN_DOWNLOAD_SIZE.
Opens an InputStream for downloading the document.
| IOException | An exception may be thrown if there was an error while downloading. |
|---|