TreeCodec
Date: 2016-12-03

com.fasterxml.jackson.core

## Class TreeCodec

- java.lang.Object
- - com.fasterxml.jackson.core.TreeCodec

- Direct Known Subclasses:
    ObjectCodec

      public abstract class TreeCodec
      extends java.lang.Object

  Interface that defines objects that can read and write `TreeNode` instances using Streaming API.
  Since:
    2.3

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TreeCodec()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract TreeNode` | `createArrayNode()`
    `abstract TreeNode` | `createObjectNode()`
    `abstract <T extends TreeNode> T` | `readTree(JsonParser p)`
    `abstract JsonParser` | `treeAsTokens(TreeNode node)`
    `abstract void` | `writeTree(JsonGenerator g, TreeNode tree)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TreeCodec

          public TreeCodec()

  - ### Method Detail

    - #### readTree

          public abstract <T extends TreeNode> T readTree(JsonParser p)
                                               throws java.io.IOException,
                                                      JsonProcessingException

      Throws:
        `java.io.IOException`
        `JsonProcessingException`

    - #### writeTree

          public abstract void writeTree(JsonGenerator g,
                       TreeNode tree)
                                  throws java.io.IOException,
                                         JsonProcessingException

      Throws:
        `java.io.IOException`
        `JsonProcessingException`

    - #### createArrayNode

          public abstract TreeNode createArrayNode()

    - #### createObjectNode

          public abstract TreeNode createObjectNode()

    - #### treeAsTokens

          public abstract JsonParser treeAsTokens(TreeNode node)