java.lang.Object | |
↳ | com.pspdfkit.document.download.source.URLDownloadSource |
Download using a URL (usually from the web). This source uses URL#openConnection()
to access the PDF resource.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
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 |
---|