fetch Chunk
Synchronously fetch a chunk of data from a start and end byte offset. This method should be thread safe as it can be called from multiple threads simultaneously. In case of error, throw exception.
Parameters
start Offset
An index into the data source indicating the first byte to include in the result buffer
end Offset
An index into the data source indicating the first byte that will not be included in the result buffer. Must be larger than 'start', and less than or equal to the value returned by getSize().
Throws
If the data chunk is currently unavailable but might be retrievable later.
For example if the data chunk cannot be fetched due to the user temporarily loosing the internet connection.
The caller MAY try to recover by fetching this data chunk again later.Content copied to clipboard
If `fetchChunk()` fails for any other reason.Content copied to clipboard