public abstract class ManifestFormatterBase extends Object implements ManifestFormatter
Constructor and Description |
---|
ManifestFormatterBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getHeader() |
String |
getLine(ContentMessage event) |
String |
getLine(ManifestItem item) |
protected abstract String |
getLine(String contentMd5,
String spaceId,
String contentId) |
protected abstract org.slf4j.Logger |
log() |
void |
writeEventsToOutput(Collection<ContentMessage> events,
OutputStream output)
This method writes the arg events to the arg output stream.
|
protected void |
writeHeader(OutputStream output) |
void |
writeManifestItemToOutput(ManifestItem item,
OutputStream output) |
public void writeEventsToOutput(Collection<ContentMessage> events, OutputStream output)
ManifestFormatter
writeEventsToOutput
in interface ManifestFormatter
events
- to writeoutput
- destination of formatted eventspublic void writeManifestItemToOutput(ManifestItem item, OutputStream output)
writeManifestItemToOutput
in interface ManifestFormatter
item
- to writeoutput
- destination of formatted items. Null manifest items are ignored.protected void writeHeader(OutputStream output)
protected abstract org.slf4j.Logger log()
protected abstract String getHeader()
public String getLine(ContentMessage event)
public String getLine(ManifestItem item)
Copyright © 2009–2014 DuraSpace. All rights reserved.