6516099: InputStream.skipFully(int k) to skip exactly k bytes
daniel.fuchs at oracle.com
Wed Nov 7 11:49:49 UTC 2018
I am not sure whether you can trust that a skip implementation
that returns -1 has actually rewind 1 byte - for instance:
Not sure there's anything that could be done in such cases, except
encouraging such subclasses to provide their own implementation
On 06/11/2018 21:30, Brian Burkhalter wrote:
> Hello again,
> I updated the patch to address the comments made by Roger and Daniel:
> Specifically, the method is implemented in terms of skip() and read() and attempts to account for the possible behaviors of the former, and most of the specification is moved to an @implSpec block.
> The tests are intentionally not updated until such time as agreement on the method itself might be achieved.
More information about the core-libs-dev