Package com.floragunn.codova.documents
Class UnparsedDocument.BytesDoc
java.lang.Object
com.floragunn.codova.documents.UnparsedDocument<Object>
com.floragunn.codova.documents.UnparsedDocument.BytesDoc
- Enclosing class:
- UnparsedDocument<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.floragunn.codova.documents.UnparsedDocument
UnparsedDocument.BytesDoc, UnparsedDocument.StringDoc -
Field Summary
Fields inherited from class com.floragunn.codova.documents.UnparsedDocument
contentType, format -
Method Summary
Methods inherited from class com.floragunn.codova.documents.UnparsedDocument
from, from, from, from, from, fromJson, getContentType, getMediaType, toBasicObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.floragunn.codova.documents.Document
meta, toDeepBasicObject, toDocNode, toJsonString, toPrettyJsonString, toSmile, toString, toYamlString
-
Method Details
-
parseAsMap
public Map<String,Object> parseAsMap() throws DocumentParseException, UnexpectedDocumentStructureException- Specified by:
parseAsMapin classUnparsedDocument<Object>- Throws:
DocumentParseExceptionUnexpectedDocumentStructureException
-
parseAsDocNode
- Specified by:
parseAsDocNodein classUnparsedDocument<Object>- Throws:
DocumentParseException
-
parse
- Specified by:
parsein classUnparsedDocument<Object>- Throws:
DocumentParseException
-
getSource
public byte[] getSource() -
getFormat
- Overrides:
getFormatin classUnparsedDocument<Object>
-
toString
-
getSourceAsString
- Specified by:
getSourceAsStringin classUnparsedDocument<Object>
-
createParser
public com.fasterxml.jackson.core.JsonParser createParser() throws com.fasterxml.jackson.core.JsonParseException, IOException- Specified by:
createParserin classUnparsedDocument<Object>- Throws:
com.fasterxml.jackson.core.JsonParseExceptionIOException
-
toBytes
-