A read-only file based UTF-8 resource which is read as UTF-32 characters. More...
#include <FileUtf8To32ReadResource.hpp>
Public Member Functions | |
FileUtf8To32ReadResource (const File &file_) | |
Create a new file UTF-8 to UTF-32 read resource from the supplied file URI. More... | |
void | close () override |
Close the stream(s) in the resource. More... | |
const File & | getFile () const |
Get the file URI. More... | |
std::u32istream & | readStream () override |
Get the input stream of the UTF-8 to UTF-32 read resource. More... | |
const Uri & | uri () const override |
Get the URI associated with this resource. More... | |
Public Member Functions inherited from Resource | |
virtual | ~Resource ()=default |
Destroy the resource instance. More... | |
A read-only file based UTF-8 resource which is read as UTF-32 characters.
|
explicit |
Create a new file UTF-8 to UTF-32 read resource from the supplied file URI.
NotFoundException | if the file does not exist |
|
inlineoverridevirtual |
Close the stream(s) in the resource.
Implements Resource.
const File& getFile | ( | ) | const |
Get the file URI.
|
inlineoverridevirtual |
Get the input stream of the UTF-8 to UTF-32 read resource.
Implements Utf8To32ReadResource.
|
overridevirtual |
Get the URI associated with this resource.
Implements Resource.