Class ManifestFileHelper


  • public class ManifestFileHelper
    extends java.lang.Object
    Author:
    Daniel Bernstein Date: Jul 29, 2015
    • Field Detail

      • MANIFEST_MD5_TEXT_FILE_NAME

        public static final java.lang.String MANIFEST_MD5_TEXT_FILE_NAME
        See Also:
        Constant Field Values
    • Method Detail

      • writeManifestEntry

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

        public static ManifestEntry parseManifestEntry​(java.lang.String line)
                                                throws java.text.ParseException
        Throws:
        java.text.ParseException
      • loadManifestSetFromFile

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

        public static java.lang.String formatManifestSetString​(java.lang.String contentId,
                                                               java.lang.String checksum)