- java.lang.Object
-
- org.duracloud.snapshot.service.impl.ManifestFileHelper
-
public class ManifestFileHelper extends Object
- Author:
- Daniel Bernstein Date: Jul 29, 2015
-
-
Field Summary
Fields Modifier and Type Field Description static StringMANIFEST_MD5_TEXT_FILE_NAME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringformatManifestSetString(String contentId, String checksum)static org.duracloud.common.collection.WriteOnlyStringSetloadManifestSetFromFile(File manifestFile)static ManifestEntryparseManifestEntry(String line)static voidwriteManifestEntry(Writer writer, String contentId, String checksum)
-
-
-
Field Detail
-
MANIFEST_MD5_TEXT_FILE_NAME
public static final String MANIFEST_MD5_TEXT_FILE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-