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
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate static final ResourceBundle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidwriteManifests(Set<Manifest> manifests, Path outputDir, Path relativeTo, String filenameBase, Charset charsetName) static voidwritePayloadManifests(Set<Manifest> manifests, Path outputDir, Path bagitRootDir, Charset charsetName) Write the payload manifest(s) to the output directorystatic voidwriteTagManifests(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 payloadManifests 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 tagManifests 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
-