openshot-audio  0.1.5
Public Member Functions | List of all members
juce::FileInputSource Class Reference

#include <juce_core.h>

Inheritance diagram for juce::FileInputSource:
juce::InputSource

Public Member Functions

 FileInputSource (const File &file, bool useFileTimeInHashGeneration=false)
 
 ~FileInputSource ()
 
InputStreamcreateInputStream ()
 
InputStreamcreateInputStreamFor (const String &relatedItemPath)
 
int64 hashCode () const
 
- Public Member Functions inherited from juce::InputSource
 InputSource () noexcept
 
virtual ~InputSource ()
 

Detailed Description

A type of InputSource that represents a normal file.

See also
InputSource

Constructor & Destructor Documentation

◆ FileInputSource()

FileInputSource::FileInputSource ( const File file,
bool  useFileTimeInHashGeneration = false 
)

Creates a FileInputSource for a file. If the useFileTimeInHashGeneration parameter is true, then this object's hashCode() method will incorporate the file time into its hash code; if false, only the file name will be used for the hash.

◆ ~FileInputSource()

FileInputSource::~FileInputSource ( )

Destructor.

Member Function Documentation

◆ createInputStream()

InputStream * FileInputSource::createInputStream ( )
virtual

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 * FileInputSource::createInputStreamFor ( const String relatedItemPath)
virtual

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 FileInputSource::hashCode ( ) const
virtual

Returns a hash code that uniquely represents this item.

Implements juce::InputSource.


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