Package com.floragunn.codova.documents
Class UnparsedDocument.StringDoc
- java.lang.Object
-
- com.floragunn.codova.documents.UnparsedDocument<Object>
-
- com.floragunn.codova.documents.UnparsedDocument.StringDoc
-
- Enclosing class:
- UnparsedDocument<T>
public static class UnparsedDocument.StringDoc extends UnparsedDocument<Object>
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.core.JsonParsercreateParser()FormatgetFormat()StringgetSource()StringgetSourceAsString()Objectparse()DocNodeparseAsDocNode()Map<String,Object>parseAsMap()StringtoString()StringtoString(Format format)-
Methods inherited from class com.floragunn.codova.documents.UnparsedDocument
from, from, from, from, from, fromJson, getContentType, getMediaType, toBasicObject
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.floragunn.codova.documents.Document
meta, toBytes, toDeepBasicObject, toDocNode, toJsonString, toPrettyJsonString, toSmile, toYamlString
-
-
-
-
Constructor Detail
-
StringDoc
public StringDoc(String source, ContentType format)
-
-
Method Detail
-
parseAsMap
public Map<String,Object> parseAsMap() throws DocumentParseException, UnexpectedDocumentStructureException
- Specified by:
parseAsMapin classUnparsedDocument<Object>- Throws:
DocumentParseExceptionUnexpectedDocumentStructureException
-
parseAsDocNode
public DocNode parseAsDocNode() throws DocumentParseException
- Specified by:
parseAsDocNodein classUnparsedDocument<Object>- Throws:
DocumentParseException
-
parse
public Object parse() throws DocumentParseException
- Specified by:
parsein classUnparsedDocument<Object>- Throws:
DocumentParseException
-
getSource
public String getSource()
-
getFormat
public Format getFormat()
- Overrides:
getFormatin classUnparsedDocument<Object>
-
getSourceAsString
public String 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
-
-