|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.jackson.node.JsonNodeFactory
org.codehaus.jackson.map.TreeMapper
ObjectMapper
instead
public class TreeMapper
This mapper (or, codec) provides mapping between Json, and Tree-like structure that consists of child-linked nodes that can be traversed with simple path operations (indexing arrays by element, objects by field name).
As of version 0.9.9 of Jackson, most functionality has
been moved away from this class: all serialization and
deserialization features are now accessible through either
ObjectMapper
or JsonParser
and
JsonGenerator
. The remaining functionality is limited
to JsonNodeFactory
implementation which allows constructing
typed JsonNode
instances.
Field Summary | |
---|---|
protected ObjectMapper |
_objectMapper
Deprecated. Mapper that handles actual serialization/deserialization |
Fields inherited from class org.codehaus.jackson.node.JsonNodeFactory |
---|
instance |
Constructor Summary | |
---|---|
TreeMapper()
Deprecated. |
|
TreeMapper(ObjectMapper m)
Deprecated. |
Method Summary | |
---|---|
JsonFactory |
getJsonFactory()
Deprecated. Method that can be used to get hold of Json factory that this mapper uses if it needs to construct Json parsers and/or generators. |
protected ObjectMapper |
objectMapper()
Deprecated. |
JsonNode |
readTree(byte[] jsonContent)
Deprecated. |
JsonNode |
readTree(File src)
Deprecated. |
JsonNode |
readTree(InputStream src)
Deprecated. |
JsonNode |
readTree(JsonParser jp)
Deprecated. Method that will try to read a sub-tree using given parser, map it to a tree (represented by a root JsonNode) and return it, if possible. |
JsonNode |
readTree(Reader src)
Deprecated. |
JsonNode |
readTree(String jsonContent)
Deprecated. |
JsonNode |
readTree(URL src)
Deprecated. |
void |
writeTree(JsonNode rootNode,
File dst)
Deprecated. |
void |
writeTree(JsonNode rootNode,
OutputStream dst)
Deprecated. |
void |
writeTree(JsonNode rootNode,
Writer dst)
Deprecated. |
Methods inherited from class org.codehaus.jackson.node.JsonNodeFactory |
---|
arrayNode, binaryNode, binaryNode, booleanNode, nullNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, objectNode, POJONode, textNode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ObjectMapper _objectMapper
Constructor Detail |
---|
public TreeMapper()
public TreeMapper(ObjectMapper m)
Method Detail |
---|
public JsonFactory getJsonFactory()
public JsonNode readTree(JsonParser jp) throws IOException, JsonParseException
IOException
JsonParseException
public JsonNode readTree(File src) throws IOException, JsonParseException
IOException
JsonParseException
public JsonNode readTree(URL src) throws IOException, JsonParseException
IOException
JsonParseException
public JsonNode readTree(InputStream src) throws IOException, JsonParseException
IOException
JsonParseException
public JsonNode readTree(Reader src) throws IOException, JsonParseException
IOException
JsonParseException
public JsonNode readTree(String jsonContent) throws IOException, JsonParseException
IOException
JsonParseException
public JsonNode readTree(byte[] jsonContent) throws IOException, JsonParseException
IOException
JsonParseException
public void writeTree(JsonNode rootNode, File dst) throws IOException, JsonParseException
IOException
JsonParseException
public void writeTree(JsonNode rootNode, Writer dst) throws IOException, JsonParseException
IOException
JsonParseException
public void writeTree(JsonNode rootNode, OutputStream dst) throws IOException, JsonParseException
IOException
JsonParseException
protected ObjectMapper objectMapper()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |