toString() method for
BaseJsonNode, by embedding a private instance of
JsonMapper, only to be used for node serialization.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | InternalNodeMapper.
Optimized variant similar in functionality to (a subset of)
|
| protected static class | InternalNodeMapper.
Intermediate serializer we need to implement non-recursive serialization of
|
| Modifier and Type | Field and Description |
|---|---|
| private static final JsonMapper | |
| private static final ObjectReader | |
| private static final ObjectWriter | |
| private static final ObjectWriter |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static JsonSerializable | |
| public static JsonNode | |
| public static String | |
| public static String | |
| public static byte[] |
| JSON_MAPPER | back to summary |
|---|---|
| private static final JsonMapper JSON_MAPPER | |
| NODE_READER | back to summary |
|---|---|
| private static final ObjectReader NODE_READER | |
| PRETTY_WRITER | back to summary |
|---|---|
| private static final ObjectWriter PRETTY_WRITER | |
| STD_WRITER | back to summary |
|---|---|
| private static final ObjectWriter STD_WRITER | |
| InternalNodeMapper | back to summary |
|---|---|
| pack-priv InternalNodeMapper() | |
| _wrapper | back to summary |
|---|---|
| private static JsonSerializable _wrapper(BaseJsonNode root) | |
| bytesToNode | back to summary |
|---|---|
| public static JsonNode bytesToNode(byte[] json) throws IOException | |
| nodeToPrettyString | back to summary |
|---|---|
| public static String nodeToPrettyString(BaseJsonNode n) | |
| nodeToString | back to summary |
|---|---|
| public static String nodeToString(BaseJsonNode n) | |
| valueToBytes | back to summary |
|---|---|
| public static byte[] valueToBytes(Object value) throws IOException | |
java.util.ArrayDeque ; used to hold enclosing Array/Object
nodes during recursion-as-iteration.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private Iterator | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Iterator | |
| public void |
| _end | back to summary |
|---|---|
| private int _end | |
| _stack | back to summary |
|---|---|
| private Iterator<?>[] _stack | |
| _top | back to summary |
|---|---|
| private int _top | |
| IteratorStack | back to summary |
|---|---|
| public IteratorStack() | |
| popOrNull | back to summary |
|---|---|
| public Iterator | |
| push | back to summary |
|---|---|
| public void push(Iterator<?> it) | |
BaseJsonNode.Note
not designed as thread-safe; instances must NOT be shared or reused.
| Modifier and Type | Field and Description |
|---|---|
| protected SerializerProvider | |
| protected final BaseJsonNode |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | _serializeNonRecursive(JsonGenerator g, InternalNodeMapper.
|
| public void | serialize(JsonGenerator g, SerializerProvider ctxt)
Implements com. Serialization method called when no additional type information is to be included in serialization. |
| public void | serializeWithType(JsonGenerator g, SerializerProvider ctxt, TypeSerializer typeSer)
Implements com. Serialization method called when additional type information is expected to be included in serialization, for deserialization to use. |
| _context | back to summary |
|---|---|
| protected SerializerProvider _context | |
| _root | back to summary |
|---|---|
| protected final BaseJsonNode _root | |
| WrapperForSerializer | back to summary |
|---|---|
| public WrapperForSerializer(BaseJsonNode root) | |
| _serializeNonRecursive | back to summary |
|---|---|
| protected void _serializeNonRecursive(JsonGenerator g, JsonNode node) throws IOException | |
| _serializeNonRecursive | back to summary |
|---|---|
| protected void _serializeNonRecursive(JsonGenerator g, InternalNodeMapper. | |
| serialize | back to summary |
|---|---|
| public void serialize(JsonGenerator g, SerializerProvider ctxt) throws IOException Implements com. Doc from com. Serialization method called when no additional type information is to be included in serialization.
| |
| serializeWithType | back to summary |
|---|---|
| public void serializeWithType(JsonGenerator g, SerializerProvider ctxt, TypeSerializer typeSer) throws IOException Implements com. Doc from com. Serialization method called when additional type information is expected to be included in serialization, for deserialization to use.
Usually implementation consists of a call to Note that some types (most notably, "natural" types: String, Integer, Double and Boolean) never include type information.
| |