OCFL / ocfl-java

A Java OCFL implementation
MIT License
16 stars 12 forks source link

Range-Requests for OCFL files #118

Open rsteph-de opened 6 days ago

rsteph-de commented 6 days ago

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.

pwinckles commented 4 days ago

@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.