| java.lang.Object | |
| ↳ | com.pspdfkit.document.download.source.URLDownloadSource |
Download using a URL (usually from the web). This source uses openConnection() to access the PDF resource.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.pspdfkit.document.download.source.DownloadSource
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
URLDownloadSource(URL documentURL)
Constructs the download source based on a URL.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| long |
getLength()
Returns the total length of the download.
| ||||||||||
| InputStream |
open()
Opens an
InputStream for downloading the document. | ||||||||||
| String | toString() | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.pspdfkit.document.download.source.DownloadSource
| |||||||||||
Constructs the download source based on a URL.
| documentURL | The URL pointing to the PDF document. |
|---|
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 |
|---|