Class BagItROWriter
- java.lang.Object
-
- uk.org.esciencelab.researchobjectservice.serialization.BagWriter
-
- uk.org.esciencelab.researchobjectservice.serialization.BagItROWriter
-
public class BagItROWriter extends BagWriter
A class for writing all necessary tag files etc. for a given Bag as a BagIt RO, with an RO manifest.
-
-
Field Summary
-
Fields inherited from class uk.org.esciencelab.researchobjectservice.serialization.BagWriter
bag, tagFileChecksums
-
-
Constructor Summary
Constructors Constructor Description BagItROWriter(Bag bag)
Create a new BagIt RO writer for the given bag.
-
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
-
BagItROWriter
public BagItROWriter(Bag bag)
Create a new BagIt RO writer for the given bag.- Parameters:
bag
- The bag to write.
-
-
Method Detail
-
writeTagFiles
protected void writeTagFiles() throws java.io.IOException, java.security.NoSuchAlgorithmException
- Overrides:
writeTagFiles
in classBagWriter
- Throws:
java.io.IOException
java.security.NoSuchAlgorithmException
-
-