There are different use cases where it would be helpful, if the OCFL Java API supports RangeRequests:
download of very lage files
mulitpart downloads / resume download on error
retrieve parts of files
Cover Images / first page from PDF files
get single files from TAR archive or uncompressed ZIP
Currently we can only get the whole input stream, skip first bytes and close early, after the request is fulfilled.
But most of the implementations support RangeRequest directly (like RandomAccessFiles in Java or Range-Requests for S3Objects).
It would be very useful if the OCFL Java API could be enhanced with methods to request ranges of files and pass them through to the underlying implementations.
@rsteph-de Thanks for filing this issue. I haven't had a chance to investigate the options yet, but hope to later this week and will then get back to you.
There are different use cases where it would be helpful, if the OCFL Java API supports RangeRequests:
Currently we can only get the whole input stream, skip first bytes and close early, after the request is fulfilled. But most of the implementations support RangeRequest directly (like RandomAccessFiles in Java or Range-Requests for S3Objects).
It would be very useful if the OCFL Java API could be enhanced with methods to request ranges of files and pass them through to the underlying implementations.