OCFL / ocfl-java

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

Store file size in OCFL metadata #116

Open rsteph-de opened 1 week ago

rsteph-de commented 1 week ago

There are certain use cases for size metadata in OCFL, e.g.

The straight forward implementation would simply treat the size as another fixity as already mentioned in OCFL Community Extension 0009: Digest Algorithms (https://ocfl.github.io/extensions/0009-digest-algorithms.html)

I'm going to create a Pull Request based on my current sample code for this.

If we can open the DigestAlgorithmn class for extension (make constructor public) it becomes easier to support other fixity values.