Skip to content

Commit

Permalink
MCRFileAttributes replace md5sum() with digest().toHexString() #85
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteph-de committed Sep 13, 2024
1 parent d2916e9 commit f48d264
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public MCREditableMetaEnrichedLinkID getDerivateLink(MCRDerivate der) {
@SuppressWarnings("rawtypes")
MCRFileAttributes attrs = Files.readAttributes(mcrPath, MCRFileAttributes.class);
derivateLinkID.setOrCreateElement("maindoc_size", Long.toString(attrs.size()));
derivateLinkID.getContentList().add(new Element("maindoc_md5").setText(attrs.md5sum()));
derivateLinkID.getContentList().add(new Element("maindoc_"+attrs.digest().getAlgorithm().toLowerCase()).setText(attrs.digest().toHexString()));
} catch (IOException e) {
LOGGER.error(e);
}
Expand Down

0 comments on commit f48d264

Please sign in to comment.