Class BagItROCrateWriter
- java.lang.Object
-
- uk.org.esciencelab.researchobjectservice.serialization.BagWriter
-
- uk.org.esciencelab.researchobjectservice.serialization.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.
-
-
Field Summary
-
Fields inherited from class uk.org.esciencelab.researchobjectservice.serialization.BagWriter
bag, tagFileChecksums
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
writeTagFiles()
-
Methods inherited from class uk.org.esciencelab.researchobjectservice.serialization.BagWriter
updateChecksumMap, write, writeBagInfo, writeBagIt, writeFetch, writeManifest, writeTagManifest
-
-
-
-
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 classBagWriter
- Throws:
java.io.IOException
java.security.NoSuchAlgorithmException
-
-