Package nl.knaw.dans.bagit.writer
Class ManifestWriter
java.lang.Object
nl.knaw.dans.bagit.writer.ManifestWriter
Responsible for writing out a
Manifest
to the filesystem-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private static final ResourceBundle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
writeManifests
(Set<Manifest> manifests, Path outputDir, Path relativeTo, String filenameBase, Charset charsetName) static void
writePayloadManifests
(Set<Manifest> manifests, Path outputDir, Path bagitRootDir, Charset charsetName) Write the payload manifest(s) to the output directorystatic void
writeTagManifests
(Set<Manifest> tagManifests, Path outputDir, Path bagitRootDir, Charset charsetName) Write the tag manifest(s) to the output directory
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
messages
-
-
Constructor Details
-
ManifestWriter
private ManifestWriter()
-
-
Method Details
-
writePayloadManifests
public static void writePayloadManifests(Set<Manifest> manifests, Path outputDir, Path bagitRootDir, Charset charsetName) throws IOException Write the payload manifest(s) to the output directory- Parameters:
manifests
- the payloadManifest
s to write outoutputDir
- the root of where the manifest is being written tobagitRootDir
- the path to the root of the bagcharsetName
- the name of the encoding for the file- Throws:
IOException
- if there was a problem writing a file
-
writeTagManifests
public static void writeTagManifests(Set<Manifest> tagManifests, Path outputDir, Path bagitRootDir, Charset charsetName) throws IOException Write the tag manifest(s) to the output directory- Parameters:
tagManifests
- the tagManifest
s to write outoutputDir
- the root of where the manifest is being written tobagitRootDir
- the path to the root of the bagcharsetName
- the name of the encoding for the file- Throws:
IOException
- if there was a problem writing a file
-
writeManifests
private static void writeManifests(Set<Manifest> manifests, Path outputDir, Path relativeTo, String filenameBase, Charset charsetName) throws IOException - Throws:
IOException
-