An InputSource backed by an AndroidDocument. More...
Public Member Functions | |
AndroidDocumentInputSource (const AndroidDocument &doc) | |
Creates a new AndroidDocumentInputSource, backed by the provided document. | |
InputStream * | createInputStream () override |
Returns a new InputStream to read this item. | |
InputStream * | createInputStreamFor (const String &relatedItemPath) override |
int64 | hashCode () const override |
Returns a hash code that uniquely represents this item. | |
![]() | |
InputSource ()=default | |
virtual | ~InputSource ()=default |
Destructor. | |
virtual InputStream * | createInputStream ()=0 |
Returns a new InputStream to read this item. | |
virtual InputStream * | createInputStreamFor (const String &relatedItemPath)=0 |
Returns a new InputStream to read an item, relative. | |
virtual int64 | hashCode () const =0 |
Returns a hash code that uniquely represents this item. | |
An InputSource backed by an AndroidDocument.
|
explicit |
Creates a new AndroidDocumentInputSource, backed by the provided document.
|
overridevirtual |
Returns a new InputStream to read this item.
Implements InputSource.
|
overridevirtual |
An AndroidDocument doesn't use conventional filesystem paths. Use the member functions of AndroidDocument to locate relative items.
relatedItemPath | the relative pathname of the resource that is required |
Implements InputSource.
References String::isEmpty().
|
overridevirtual |
Returns a hash code that uniquely represents this item.
Implements InputSource.