Package org.duracloud.manifest
Interface ManifestFormatter
- All Known Implementing Classes:
BagitManifestFormatter,ManifestFormatterBase,TsvManifestFormatter
public interface ManifestFormatter
This class defines the contract for Manifest Formatters.
- Author:
- Andrew Woods Date: 3/29/12
-
Method Summary
Modifier and TypeMethodDescriptionformatLine(org.duracloud.mill.db.model.ManifestItem item) Formats a manifest item into an appropriate line.Returns the header if there is one, otherwise null.org.duracloud.mill.db.model.ManifestItemParses a line into a ManifestItemvoidwriteEventsToOutput(Collection<ContentMessage> events, OutputStream output) This method writes the arg events to the arg output stream.voidwriteManifestItemToOutput(org.duracloud.mill.db.model.ManifestItem item, OutputStream outputStream)
-
Method Details
-
writeEventsToOutput
This method writes the arg events to the arg output stream.- Parameters:
events- to writeoutput- destination of formatted events
-
writeManifestItemToOutput
void writeManifestItemToOutput(org.duracloud.mill.db.model.ManifestItem item, OutputStream outputStream) - Parameters:
item- to writeoutputStream- destination of formatted items. Null manifest items are ignored.
-
getHeader
String getHeader()Returns the header if there is one, otherwise null.- Returns:
-
parseLine
Parses a line into a ManifestItem- Parameters:
line-- Returns:
- Throws:
ParseException
-
formatLine
Formats a manifest item into an appropriate line.- Parameters:
item-- Returns:
-