In this initial implementation, we throw an error when we get a partial response from the server whose content is less than the bytes we originally requested.
In this initial implementation, we throw an error when we get a partial response from the server whose content is less than the bytes we originally requested.
The offset into the resource at which we want to start reading bytes
The number of bytes to be read
An InputStream from a ranged HTTP GET, which should contain just the requested bytes
readFully is a helper method, for when you're going to use readByteStream and just read all the bytes immediately.
readFully is a helper method, for when you're going to use readByteStream and just read all the bytes immediately.
The offset in the resource at which you want to start reading
The number of bytes to read
An Array of bytes read. The length of this array will be <= the 'length' argument.
HTTPRangedByteAccess supports Ranged GET queries against HTTP resources.