public class ManifestBuilder extends Object implements AutoCloseable
| Constructor and Description |
|---|
ManifestBuilder(OutputStream outputStream) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeManifest() |
void |
endDataObjectGroup() |
void |
endDataObjectPackage() |
void |
endDescriptiveMetadata() |
void |
startDataObjectGroup(String groupId) |
void |
startDataObjectPackage() |
void |
startDescriptiveMetadata() |
void |
writeArchiveUnit(com.fasterxml.jackson.databind.JsonNode result,
com.google.common.collect.ListMultimap<String,String> multimap,
Map<String,String> ogs)
write an archiveUnit.
|
Map<String,com.fasterxml.jackson.databind.JsonNode> |
writeGOT(com.fasterxml.jackson.databind.JsonNode og,
String linkedAU,
Optional<Set<String>> dataObjectVersionFilter)
write a GOT
|
void |
writeOriginatingAgency(String originatingAgency) |
public ManifestBuilder(OutputStream outputStream) throws XMLStreamException, JAXBException
outputStream - XMLStreamExceptionJAXBExceptionpublic Map<String,com.fasterxml.jackson.databind.JsonNode> writeGOT(com.fasterxml.jackson.databind.JsonNode og, String linkedAU, Optional<Set<String>> dataObjectVersionFilter) throws com.fasterxml.jackson.core.JsonProcessingException, JAXBException, ProcessingException, XMLStreamException
og - com.fasterxml.jackson.core.JsonProcessingExceptionJAXBExceptionProcessingExceptionXMLStreamExceptionpublic void writeArchiveUnit(com.fasterxml.jackson.databind.JsonNode result,
com.google.common.collect.ListMultimap<String,String> multimap,
Map<String,String> ogs)
throws com.fasterxml.jackson.core.JsonProcessingException,
DatatypeConfigurationException,
JAXBException
result - multimap - ogs - com.fasterxml.jackson.core.JsonProcessingExceptionDatatypeConfigurationExceptionJAXBExceptionpublic void close()
throws XMLStreamException
close in interface AutoCloseableXMLStreamExceptionpublic void startDescriptiveMetadata()
throws XMLStreamException
XMLStreamExceptionpublic void startDataObjectPackage()
throws XMLStreamException
XMLStreamExceptionpublic void startDataObjectGroup(String groupId) throws XMLStreamException
XMLStreamExceptionpublic void endDescriptiveMetadata()
throws XMLStreamException
XMLStreamExceptionpublic void endDataObjectPackage()
throws XMLStreamException
XMLStreamExceptionpublic void endDataObjectGroup()
throws XMLStreamException
XMLStreamExceptionpublic void writeOriginatingAgency(String originatingAgency) throws JAXBException, XMLStreamException
JAXBExceptionXMLStreamExceptionpublic void closeManifest()
throws XMLStreamException
XMLStreamExceptionCopyright © 2021 Vitam. All rights reserved.