Class BagItROCrateWriter


  • public class BagItROCrateWriter
    extends BagWriter
    A class for writing all necessary tag files etc. for a given Bag as a BagIt + RO crate, with ro-crate-metadata.jsonld.
    • Constructor Detail

      • BagItROCrateWriter

        public BagItROCrateWriter​(Bag bag,
                                  com.fasterxml.jackson.databind.node.ObjectNode metadata)
        Create a new RO crate writer for the given bag, with the given metadata to be converted and written to ro-crate-metadata.jsonld.
        Parameters:
        bag - The bag to write.
        metadata - The RO metadata, usually held under a top-level property named `_metadata`.
    • Method Detail

      • writeTagFiles

        protected void writeTagFiles()
                              throws java.io.IOException,
                                     java.security.NoSuchAlgorithmException
        Overrides:
        writeTagFiles in class BagWriter
        Throws:
        java.io.IOException
        java.security.NoSuchAlgorithmException