17 #ifndef COM_BORA_SOFTWARE__BALAU_RESOURCE__STRING_URI_BYTE_READ_STRING 18 #define COM_BORA_SOFTWARE__BALAU_RESOURCE__STRING_URI_BYTE_READ_STRING 40 : stringUri(std::move(rhs.stringUri))
41 , stream(std::move(rhs.stream)) {}
47 public:
const Uri &
uri()
const override;
49 public:
void close()
override {}
53 private: std::unique_ptr<Uri> stringUri;
54 private: std::istringstream stream;
59 #endif // COM_BORA_SOFTWARE__BALAU_RESOURCE__STRING_URI_BYTE_READ_STRING A read-only String URI resource which is read as bytes.
Definition: StringUriByteReadResource.hpp:33
A read-only resource which is read as bytes.
Definition: ByteReadResource.hpp:29
An abstract universal resource identifier.
Definition: Uri.hpp:131
std::istream & readStream() override
Get the input stream of the byte read resource.
Definition: StringUriByteReadResource.hpp:43
void close() override
Close the stream(s) in the resource.
Definition: StringUriByteReadResource.hpp:49
The unified resource class hierarchy.
Definition: ByteReadResource.hpp:24
StringUriByteReadResource(const StringUri &stringUri_)
Create a new string byte read resource from the supplied String URI.
An immediate string pseudo-URI.
Definition: StringUri.hpp:49
const Uri & uri() const override
Get the URI associated with this resource.
A read-only resource which is read as bytes.