A type of InputSource that represents a normal file.
Public Member Functions | |
| FileInputSource (const File &file, bool useFileTimeInHashGeneration=false) | |
| Creates a FileInputSource for a file.   | |
| ~FileInputSource () override | |
| Destructor.   | |
| InputStream * | createInputStream () override | 
| Returns a new InputStream to read this item.   | |
| InputStream * | createInputStreamFor (const String &relatedItemPath) override | 
| Returns a new InputStream to read an item, relative.   | |
| int64 | hashCode () const override | 
| Returns a hash code that uniquely represents this item.   | |
| Public Member Functions inherited from juce::InputSource | |
| InputSource ()=default | |
| virtual | ~InputSource ()=default | 
| Destructor.   | |
| 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.
Referenced by hashCode().
      
  | 
  override | 
Destructor.
      
  | 
  overridevirtual | 
Returns a new InputStream to read this item.
Implements juce::InputSource.
      
  | 
  overridevirtual | 
Returns a new InputStream to read an item, relative.
| relatedItemPath | the relative pathname of the resource that is required | 
Implements juce::InputSource.
      
  | 
  overridevirtual | 
Returns a hash code that uniquely represents this item.
Implements juce::InputSource.
References FileInputSource().