public abstract class TreeCodec extends Object
TreeNode
instances using Streaming API.Constructor and Description |
---|
TreeCodec() |
Modifier and Type | Method and Description |
---|---|
abstract TreeNode |
createArrayNode() |
abstract TreeNode |
createObjectNode() |
TreeNode |
missingNode() |
TreeNode |
nullNode() |
abstract <T extends TreeNode> |
readTree(JsonParser p) |
abstract JsonParser |
treeAsTokens(TreeNode node) |
abstract void |
writeTree(JsonGenerator g,
TreeNode tree) |
public abstract <T extends TreeNode> T readTree(JsonParser p) throws IOException, JsonProcessingException
IOException
JsonProcessingException
public abstract void writeTree(JsonGenerator g, TreeNode tree) throws IOException, JsonProcessingException
IOException
JsonProcessingException
public TreeNode missingNode()
public TreeNode nullNode()
null
value in contentpublic abstract TreeNode createArrayNode()
public abstract TreeNode createObjectNode()
public abstract JsonParser treeAsTokens(TreeNode node)
Copyright © 2008–2023 FasterXML. All rights reserved.