JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::AndroidDocumentInputSource Class Reference

An InputSource backed by an AndroidDocument. More...

#include <juce_AndroidDocumentInputSource.h>

Inheritance diagram for juce::AndroidDocumentInputSource:
Collaboration diagram for juce::AndroidDocumentInputSource:

Public Member Functions

 AndroidDocumentInputSource (const AndroidDocument &doc)
 Creates a new AndroidDocumentInputSource, backed by the provided document.
 
InputStreamcreateInputStream () override
 Returns a new InputStream to read this item.
 
InputStreamcreateInputStreamFor (const String &relatedItemPath) override
 
int64 hashCode () const override
 Returns a hash code that uniquely represents this item.
 

Private Attributes

AndroidDocument document
 

Detailed Description

An InputSource backed by an AndroidDocument.

See also
InputSource, AndroidDocument

@tags{Core}

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

An AndroidDocument doesn't use conventional filesystem paths. Use the member functions of AndroidDocument to locate relative items.

Parameters
relatedItemPaththe relative pathname of the resource that is required
Returns
an input stream if relatedItemPath was empty, otherwise nullptr.

Implements juce::InputSource.

References juce::String::isEmpty().

◆ hashCode()

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

Returns a hash code that uniquely represents this item.

Implements juce::InputSource.

Member Data Documentation

◆ document

AndroidDocument juce::AndroidDocumentInputSource::document
private

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