Class InternalNodeSerializer.WrapperForSerializer
java.lang.Object
tools.jackson.databind.JacksonSerializable.Base
tools.jackson.databind.node.InternalNodeSerializer.WrapperForSerializer
- All Implemented Interfaces:
JacksonSerializable
- Enclosing class:
InternalNodeSerializer
Intermediate serializer we need to implement non-recursive serialization of
BaseJsonNode-
Nested Class Summary
Nested classes/interfaces inherited from interface JacksonSerializable
JacksonSerializable.Base -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_serializeNonRecursive(tools.jackson.core.JsonGenerator g, JsonNode node) protected void_serializeNonRecursive(tools.jackson.core.JsonGenerator g, InternalNodeSerializer.IteratorStack stack, Iterator<?> rootIterator) voidserialize(tools.jackson.core.JsonGenerator g, SerializationContext ctxt) Serialization method called when no additional type information is to be included in serialization.voidserializeWithType(tools.jackson.core.JsonGenerator gen, SerializationContext serializers, TypeSerializer typeSer) Serialization method called when additional type information is expected to be included in serialization, for deserialization to use.Methods inherited from class JacksonSerializable.Base
isEmpty
-
Field Details
-
_root
-
_context
-
-
Constructor Details
-
WrapperForSerializer
-
-
Method Details
-
serialize
public void serialize(tools.jackson.core.JsonGenerator g, SerializationContext ctxt) throws tools.jackson.core.JacksonException Description copied from interface:JacksonSerializableSerialization method called when no additional type information is to be included in serialization.- Throws:
tools.jackson.core.JacksonException
-
serializeWithType
public void serializeWithType(tools.jackson.core.JsonGenerator gen, SerializationContext serializers, TypeSerializer typeSer) throws tools.jackson.core.JacksonException Description copied from interface:JacksonSerializableSerialization method called when additional type information is expected to be included in serialization, for deserialization to use.Usually implementation consists of a call to
TypeSerializer.writeTypePrefix(JsonGenerator, SerializationContext, WritableTypeId)followed by serialization of contents, followed by a call toTypeSerializer.writeTypeSuffix(JsonGenerator, SerializationContext, WritableTypeId)). Details of the type id argument to pass depend on shape of JSON Object used (Array, Object or scalar like String/Number/Boolean).Note that some types (most notably, "natural" types: String, Integer, Double and Boolean) never include type information.
- Throws:
tools.jackson.core.JacksonException
-
_serializeNonRecursive
protected void _serializeNonRecursive(tools.jackson.core.JsonGenerator g, JsonNode node) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-
_serializeNonRecursive
protected void _serializeNonRecursive(tools.jackson.core.JsonGenerator g, InternalNodeSerializer.IteratorStack stack, Iterator<?> rootIterator) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-