public class ContainerDeserializer extends AbstractContainer
Documents.FORMATTER, REVISIONS_DIRNAME| Constructor and Description |
|---|
ContainerDeserializer() |
| Modifier and Type | Method and Description |
|---|---|
protected long |
determineVersion(com.fasterxml.jackson.databind.JsonNode metaNode) |
protected boolean |
isMetadata(String name) |
protected boolean |
isRevision(String name) |
protected void |
merge(Document result,
Map<String,byte[]> revisions) |
protected Document |
readMeta(byte[] metaBytes) |
protected Document |
unarchive(byte[] data,
boolean standalone) |
Document |
unarchive(InputStream is,
boolean standalone)
Reads a tar/tgz from the given InputStream and extracts the Document containing.
|
generateRevisionName, getVerjsonprotected Document unarchive(byte[] data, boolean standalone) throws InvalidArchiveException, de.galan.verjson.core.VersionNotSupportedException, de.galan.verjson.core.NamespaceMismatchException, de.galan.verjson.step.ProcessStepException, de.galan.verjson.core.IOReadException, IOException
InvalidArchiveExceptionde.galan.verjson.core.VersionNotSupportedExceptionde.galan.verjson.core.NamespaceMismatchExceptionde.galan.verjson.step.ProcessStepExceptionde.galan.verjson.core.IOReadExceptionIOExceptionpublic Document unarchive(InputStream is, boolean standalone) throws IOException, InvalidArchiveException, de.galan.verjson.core.VersionNotSupportedException, de.galan.verjson.core.NamespaceMismatchException, de.galan.verjson.step.ProcessStepException, de.galan.verjson.core.IOReadException
IOExceptionInvalidArchiveExceptionde.galan.verjson.core.VersionNotSupportedExceptionde.galan.verjson.core.NamespaceMismatchExceptionde.galan.verjson.step.ProcessStepExceptionde.galan.verjson.core.IOReadExceptionprotected void merge(Document result, Map<String,byte[]> revisions) throws InvalidArchiveException
InvalidArchiveExceptionprotected Document readMeta(byte[] metaBytes) throws IOException, InvalidArchiveException, de.galan.verjson.core.VersionNotSupportedException, de.galan.verjson.core.NamespaceMismatchException, de.galan.verjson.step.ProcessStepException, de.galan.verjson.core.IOReadException
IOExceptionInvalidArchiveExceptionde.galan.verjson.core.VersionNotSupportedExceptionde.galan.verjson.core.NamespaceMismatchExceptionde.galan.verjson.step.ProcessStepExceptionde.galan.verjson.core.IOReadExceptionprotected long determineVersion(com.fasterxml.jackson.databind.JsonNode metaNode)
throws InvalidArchiveException
InvalidArchiveExceptionprotected boolean isMetadata(String name)
protected boolean isRevision(String name)
Copyright © 2015. All rights reserved.