Class ManifestFileHelper

java.lang.Object
org.duracloud.snapshot.service.impl.ManifestFileHelper

public class ManifestFileHelper extends Object
Author:
Daniel Bernstein Date: Jul 29, 2015
  • Field Details

  • Method Details

    • writeManifestEntry

      public static void writeManifestEntry(Writer writer, String contentId, String checksum) throws IOException
      Parameters:
      writer -
      contentId -
      checksum -
      Throws:
      IOException
    • parseManifestEntry

      public static ManifestEntry parseManifestEntry(String line) throws ParseException
      Throws:
      ParseException
    • loadManifestSetFromFile

      public static org.duracloud.common.collection.WriteOnlyStringSet loadManifestSetFromFile(File manifestFile) throws Exception
      Parameters:
      manifestFile - a manifest file
      Returns:
      a set based on the combined content id and checksum.
      Throws:
      Exception
    • formatManifestSetString

      public static String formatManifestSetString(String contentId, String checksum)