Class ManifestFileHelper
java.lang.Object
org.duracloud.snapshot.service.impl.ManifestFileHelper
- Author:
- Daniel Bernstein Date: Jul 29, 2015
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
MANIFEST_MD5_TEXT_FILE_NAME
- See Also:
-
-
Method Details
-
writeManifestEntry
public static void writeManifestEntry(Writer writer, String contentId, String checksum) throws IOException - Parameters:
writer-contentId-checksum-- Throws:
IOException
-
parseManifestEntry
- 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
-