Package com.floragunn.codova.documents
Class UnparsedDocument<T>
java.lang.Object
com.floragunn.codova.documents.UnparsedDocument<T>
- All Implemented Interfaces:
Document<T>
- Direct Known Subclasses:
UnparsedDocument.BytesDoc,UnparsedDocument.StringDoc
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionabstract com.fasterxml.jackson.core.JsonParserstatic UnparsedDocument<?>from(byte[] source, ContentType contentType) static UnparsedDocument<?>static UnparsedDocument<?>static UnparsedDocument<?>from(String source, ContentType contentType) static UnparsedDocument<?>static UnparsedDocument<?>abstract Stringabstract Objectparse()abstract DocNodeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.floragunn.codova.documents.Document
meta, toBytes, toDeepBasicObject, toDocNode, toJsonString, toPrettyJsonString, toSmile, toString, toYamlString
-
Field Details
-
format
-
contentType
-
-
Method Details
-
from
-
from
-
from
-
from
-
from
-
fromJson
-
parseAsMap
public abstract Map<String,Object> parseAsMap() throws DocumentParseException, UnexpectedDocumentStructureException -
parseAsDocNode
- Throws:
DocumentParseException
-
parse
- Throws:
DocumentParseException
-
getSourceAsString
-
createParser
public abstract com.fasterxml.jackson.core.JsonParser createParser() throws com.fasterxml.jackson.core.JsonParseException, IOException- Throws:
com.fasterxml.jackson.core.JsonParseExceptionIOException
-
getFormat
-
getContentType
-
getMediaType
-
toBasicObject
- Specified by:
toBasicObjectin interfaceDocument<T>
-