Class InternalNodeSerializer.WrapperForSerializer

java.lang.Object
tools.jackson.databind.JacksonSerializable.Base
tools.jackson.databind.node.InternalNodeSerializer.WrapperForSerializer
All Implemented Interfaces:
JacksonSerializable
Enclosing class:
InternalNodeSerializer

protected static class InternalNodeSerializer.WrapperForSerializer extends JacksonSerializable.Base
Intermediate serializer we need to implement non-recursive serialization of BaseJsonNode
  • Field Details

  • Constructor Details

    • WrapperForSerializer

      public WrapperForSerializer(BaseJsonNode root)
  • Method Details

    • serialize

      public void serialize(tools.jackson.core.JsonGenerator g, SerializationContext ctxt) throws tools.jackson.core.JacksonException
      Description copied from interface: JacksonSerializable
      Serialization 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: JacksonSerializable
      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 TypeSerializer.writeTypePrefix(JsonGenerator, SerializationContext, WritableTypeId) followed by serialization of contents, followed by a call to TypeSerializer.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