类 Jackson2SmileEncoder

所有已实现的接口:
cn.taketoday.core.codec.Encoder<Object>, HttpMessageEncoder<Object>

public class Jackson2SmileEncoder extends AbstractJackson2Encoder
Encode from an Object stream to a byte stream of Smile objects using Jackson 2.9. For non-streaming use cases, Flux elements are collected into a List before serialization for performance reason.
从以下版本开始:
4.0
作者:
Sebastien Deleuze
另请参阅:
  • 字段详细资料

    • DEFAULT_SMILE_MIME_TYPES

      static final cn.taketoday.util.MimeType[] DEFAULT_SMILE_MIME_TYPES
    • STREAM_SEPARATOR

      private static final byte[] STREAM_SEPARATOR
  • 构造器详细资料

    • Jackson2SmileEncoder

      public Jackson2SmileEncoder()
    • Jackson2SmileEncoder

      public Jackson2SmileEncoder(ObjectMapper mapper, cn.taketoday.util.MimeType... mimeTypes)
  • 方法详细资料

    • getStreamingMediaTypeSeparator

      @Nullable protected byte[] getStreamingMediaTypeSeparator(@Nullable cn.taketoday.util.MimeType mimeType)
      Return the separator to use for the given mime type.

      By default, this method returns a single byte 0 if the given mime type is one of the configured streaming mime types.

      覆盖:
      getStreamingMediaTypeSeparator 在类中 AbstractJackson2Encoder