JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::URLInputSource Class Reference

A type of InputSource that represents a URL. More...

#include <juce_URLInputSource.h>

Inheritance diagram for juce::URLInputSource:
Collaboration diagram for juce::URLInputSource:

Public Member Functions

 URLInputSource (const URL &url)
 Creates a URLInputSource for a url. More...
 
 URLInputSource (URL &&url)
 Move constructor which will move the URL into the InputSource. More...
 
 ~URLInputSource () override
 Destructor. More...
 
InputStreamcreateInputStream () override
 Returns a new InputStream to read this item. More...
 
InputStreamcreateInputStreamFor (const String &relatedItemPath) override
 Returns a new InputStream to read an item, relative. More...
 
int64 hashCode () const override
 Returns a hash code that uniquely represents this item. More...
 

Private Attributes

const URL u
 

Detailed Description

A type of InputSource that represents a URL.

See also
InputSource

@tags{Core}

Constructor & Destructor Documentation

◆ URLInputSource() [1/2]

juce::URLInputSource::URLInputSource ( const URL url)

Creates a URLInputSource for a url.

◆ URLInputSource() [2/2]

juce::URLInputSource::URLInputSource ( URL &&  url)

Move constructor which will move the URL into the InputSource.

This is useful when the url carries any security credentials.

◆ ~URLInputSource()

juce::URLInputSource::~URLInputSource ( )
override

Destructor.

Member Function Documentation

◆ createInputStream()

InputStream* juce::URLInputSource::createInputStream ( )
overridevirtual

Returns a new InputStream to read this item.

Returns
an inputstream that the caller will delete, or nullptr if the filename isn't found.

Implements juce::InputSource.

◆ createInputStreamFor()

InputStream* juce::URLInputSource::createInputStreamFor ( const String relatedItemPath)
overridevirtual

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::URLInputSource::hashCode ( ) const
overridevirtual

Returns a hash code that uniquely represents this item.

Implements juce::InputSource.

Member Data Documentation

◆ u

const URL juce::URLInputSource::u
private

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