OpenShot Library | OpenShotAudio 0.2.2
|
A type of InputSource that represents a normal file. More...
#include <juce_FileInputSource.h>
Public Member Functions | |
FileInputSource (const File &file, bool useFileTimeInHashGeneration=false) | |
Creates a FileInputSource for a file. More... | |
~FileInputSource () override | |
Destructor. More... | |
InputStream * | createInputStream () override |
Returns a new InputStream to read this item. More... | |
InputStream * | createInputStreamFor (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... | |
![]() | |
virtual | ~InputSource ()=default |
Destructor. | |
virtual InputStream * | createInputStream ()=0 |
Returns a new InputStream to read this item. More... | |
virtual InputStream * | createInputStreamFor (const String &relatedItemPath)=0 |
Returns a new InputStream to read an item, relative. More... | |
virtual int64 | hashCode () const =0 |
Returns a hash code that uniquely represents this item. More... | |
A type of InputSource that represents a normal file.
Definition at line 38 of file juce_FileInputSource.h.
juce::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.
Definition at line 26 of file juce_FileInputSource.cpp.
|
override |
Destructor.
Definition at line 31 of file juce_FileInputSource.cpp.
|
overridevirtual |
Returns a new InputStream to read this item.
Implements juce::InputSource.
Definition at line 35 of file juce_FileInputSource.cpp.
References juce::File::createInputStream().
|
overridevirtual |
Returns a new InputStream to read an item, relative.
relatedItemPath | the relative pathname of the resource that is required |
Implements juce::InputSource.
Definition at line 40 of file juce_FileInputSource.cpp.
References juce::File::createInputStream(), and juce::File::getSiblingFile().
|
overridevirtual |
Returns a hash code that uniquely represents this item.
Implements juce::InputSource.
Definition at line 45 of file juce_FileInputSource.cpp.
References juce::File::getLastModificationTime(), juce::File::hashCode(), and juce::Time::toMilliseconds().