JUCE API reference
Loading...
Searching...
No Matches
Public Member Functions | List of all members
juce::AndroidDocumentInputSource Class Reference

An InputSource backed by an AndroidDocument. More...

Inheritance diagram for juce::AndroidDocumentInputSource:

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
 Returns a new InputStream to read an item, relative.
 
int64 hashCode () const override
 Returns a hash code that uniquely represents this item.
 
- Public Member Functions inherited from juce::InputSource
 InputSource ()=default
 
virtual ~InputSource ()=default
 Destructor.
 

Detailed Description

An InputSource backed by an AndroidDocument.

See also
InputSource, AndroidDocument

Constructor & Destructor Documentation

◆ AndroidDocumentInputSource()

juce::AndroidDocumentInputSource::AndroidDocumentInputSource ( const AndroidDocument &  doc)
inlineexplicit

Creates a new AndroidDocumentInputSource, backed by the provided document.

Member Function Documentation

◆ createInputStream()

InputStream * juce::AndroidDocumentInputSource::createInputStream ( )
inlineoverridevirtual

Returns a new InputStream to read this item.

Returns
an inputstream that the caller will delete, or nullptr if the document can't be opened.

Implements juce::InputSource.

◆ createInputStreamFor()

InputStream * juce::AndroidDocumentInputSource::createInputStreamFor ( const String &  relatedItemPath)
inlineoverridevirtual

Returns a new InputStream to read an item, relative.

Parameters
relatedItemPaththe relative pathname of the resource that is required
Returns
an inputstream that the caller will delete, or nullptr if the item isn't found.

Implements juce::InputSource.

◆ hashCode()

int64 juce::AndroidDocumentInputSource::hashCode ( ) const
inlineoverridevirtual

Returns a hash code that uniquely represents this item.

Implements juce::InputSource.


The documentation for this class was generated from the following file: