#include <juce_FileInputSource.h>
A type of InputSource that represents a normal file.
- See also
- InputSource
@tags{Core}
◆ FileInputSource()
| 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.
◆ ~FileInputSource()
| juce::FileInputSource::~FileInputSource |
( |
| ) |
|
|
override |
◆ createInputStream()
| InputStream * juce::FileInputSource::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()
Returns a new InputStream to read an item, relative.
- Parameters
-
| relatedItemPath | the 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::FileInputSource::hashCode |
( |
| ) |
const |
|
overridevirtual |
Returns a hash code that uniquely represents this item.
Implements juce::InputSource.
◆ file
◆ useFileTimeInHashGeneration
| bool juce::FileInputSource::useFileTimeInHashGeneration |
|
private |
The documentation for this class was generated from the following files:
- /home/runner/work/lmms-fork/lmms-fork/plugins/CarlaBase/carla/source/modules/juce_core/streams/juce_FileInputSource.h
- /home/runner/work/lmms-fork/lmms-fork/plugins/CarlaBase/carla/source/modules/juce_core/streams/juce_FileInputSource.cpp