Package com.fasterxml.jackson.core
Class TreeCodec
java.lang.Object
com.fasterxml.jackson.core.TreeCodec
- Direct Known Subclasses:
ObjectCodec
Interface that defines objects that can read and write
TreeNode
instances using Streaming API.- Since:
- 2.3
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract TreeNode
abstract TreeNode
nullNode()
abstract <T extends TreeNode>
Tabstract JsonParser
treeAsTokens
(TreeNode node) abstract void
writeTree
(JsonGenerator g, TreeNode tree)
-
Constructor Details
-
TreeCodec
public TreeCodec()
-
-
Method Details
-
readTree
public abstract <T extends TreeNode> T readTree(JsonParser p) throws IOException, JsonProcessingException - Throws:
IOException
JsonProcessingException
-
writeTree
public abstract void writeTree(JsonGenerator g, TreeNode tree) throws IOException, JsonProcessingException - Throws:
IOException
JsonProcessingException
-
missingNode
- Returns:
- Node that represents "missing" node during traversal: something referenced but that does not exist in content model
- Since:
- 2.10
-
nullNode
- Returns:
- Node that represents explicit
null
value in content - Since:
- 2.10
-
createArrayNode
-
createObjectNode
-
treeAsTokens
-