| java.lang.Object | |
| ↳ | com.pspdfkit.document.download.source.ContentResolverDownloadSource |
A source for downloading a document from a ContentProvider.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.pspdfkit.document.download.source.DownloadSource
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
ContentResolverDownloadSource(Context context, Uri uri)
Constructor taking a
uri pointing to a content provider. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| long |
getLength()
Returns the total length of the download.
| ||||||||||
| Uri |
getUri()
Returns the
Uri pointing to the content provider served document. | ||||||||||
| 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
| |||||||||||
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 |
|---|