Data will be read as needed from the source stream sequentially and gets
stored in the local file for random access. Note that the reported size
of the stream may change for source streams that do not report their full
size through the leastSize property.
Also note that when making the cached file writable, parts of the file that
have not yet been read from the source stream will get overwritten after
write operations to the cached file. Write operations should ideally only be
made after reading the complete source stream.
Creates a new CachedStream instance.
Data will be read as needed from the source stream sequentially and gets stored in the local file for random access. Note that the reported size of the stream may change for source streams that do not report their full size through the leastSize property.
Also note that when making the cached file writable, parts of the file that have not yet been read from the source stream will get overwritten after write operations to the cached file. Write operations should ideally only be made after reading the complete source stream.