Document Source
class DocumentSource
Represents a document source which may be a DataProvider or a file Uri.
Constructors
Link copied to clipboard
Creates a new DocumentSource with file Uri as a source.
Creates a new DocumentSource with file Uri as a source.
Creates a new DocumentSource with file Uri as a source.
Creates a new DocumentSource with a DataProvider as a source.
Creates a new DocumentSource with a DataProvider as a source.
constructor(@NonNull dataProvider: DataProvider, @Nullable password: String, @Nullable contentSignature: String)
Creates a new DocumentSource with a DataProvider as a source.
Functions
Link copied to clipboard
Returns a copy of this source with new password set.
Link copied to clipboard
This function returns the data provider from the DocumentSource. If the document source is a file, it creates a data provider from the file. If the document source is not a file, it returns the data provider from the document source.
Link copied to clipboard
Returns true if the source is a file URI not a data provider.
Link copied to clipboard
Returns true if the source is remote (http/https) URL.