类 JsonObjectSerializer<T>

  • 类型参数:
    T - the supported object type
    所有已实现的接口:
    com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

    public abstract class JsonObjectSerializer<T>
    extends com.fasterxml.jackson.databind.JsonSerializer<T>
    Helper base class for JsonSerializer implementations that serialize objects.
    从以下版本开始:
    1.4.0
    另请参阅:
    JsonObjectDeserializer
    • 嵌套类概要

      • 从类继承的嵌套类/接口 com.fasterxml.jackson.databind.JsonSerializer

        com.fasterxml.jackson.databind.JsonSerializer.None
    • 方法概要

      所有方法 实例方法 抽象方法 具体方法 
      修饰符和类型方法说明
      voidserialize​(T value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) 
      protected abstract voidserializeObject​(T value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider)
      Serialize JSON content into the value type this serializer handles.
      • 从类继承的方法 com.fasterxml.jackson.databind.JsonSerializer

        acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId
    • 方法详细资料

      • serialize

        public final void serialize​(T value,
                                    com.fasterxml.jackson.core.JsonGenerator jgen,
                                    com.fasterxml.jackson.databind.SerializerProvider provider)
                             throws IOException
        指定者:
        serialize 在类中 com.fasterxml.jackson.databind.JsonSerializer<T>
        抛出:
        IOException
      • serializeObject

        protected abstract void serializeObject​(T value,
                                                com.fasterxml.jackson.core.JsonGenerator jgen,
                                                com.fasterxml.jackson.databind.SerializerProvider provider)
                                         throws IOException
        Serialize JSON content into the value type this serializer handles.
        参数:
        value - the source value
        jgen - the JSON generator
        provider - the serializer provider
        抛出:
        IOException - on error