Class ManifestWriter

java.lang.Object
nl.knaw.dans.bagit.writer.ManifestWriter

public final class ManifestWriter extends Object
Responsible for writing out a Manifest to the filesystem
  • Field Details

    • logger

      private static final org.slf4j.Logger logger
    • messages

      private static final ResourceBundle 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 out
      outputDir - the root of where the manifest is being written to
      bagitRootDir - the path to the root of the bag
      charsetName - 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 out
      outputDir - the root of where the manifest is being written to
      bagitRootDir - the path to the root of the bag
      charsetName - 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