public interface ManifestFormatter
Modifier and Type | Method and Description |
---|---|
String |
formatLine(org.duracloud.mill.db.model.ManifestItem item)
Formats a manifest item into an appropriate line.
|
String |
getHeader()
Returns the header if there is one, otherwise null.
|
org.duracloud.mill.db.model.ManifestItem |
parseLine(String line)
Parses a line into a ManifestItem
|
void |
writeEventsToOutput(Collection<ContentMessage> events,
OutputStream output)
This method writes the arg events to the arg output stream.
|
void |
writeManifestItemToOutput(org.duracloud.mill.db.model.ManifestItem item,
OutputStream outputStream) |
void writeEventsToOutput(Collection<ContentMessage> events, OutputStream output)
events
- to writeoutput
- destination of formatted eventsvoid writeManifestItemToOutput(org.duracloud.mill.db.model.ManifestItem item, OutputStream outputStream)
item
- to writeoutputStream
- destination of formatted items. Null manifest items are ignored.String getHeader()
org.duracloud.mill.db.model.ManifestItem parseLine(String line) throws ParseException
line
- ParseException
String formatLine(org.duracloud.mill.db.model.ManifestItem item)
item
- Copyright © 2009–2016 DuraSpace. All rights reserved.