Class JacksonCborEncoder

java.lang.Object
org.springframework.http.codec.JacksonCodecSupport<tools.jackson.dataformat.cbor.CBORMapper>
org.springframework.http.codec.AbstractJacksonEncoder<tools.jackson.dataformat.cbor.CBORMapper>
org.springframework.http.codec.cbor.JacksonCborEncoder
All Implemented Interfaces:
org.springframework.core.codec.Encoder<Object>, HttpMessageEncoder<Object>

public class JacksonCborEncoder extends AbstractJacksonEncoder<tools.jackson.dataformat.cbor.CBORMapper>
Encode from an Object to bytes of CBOR objects using Jackson 3.x.

Stream encoding is currently not supported.

Since:
7.0
Author:
Sebastien Deleuze
See Also:
  • Constructor Details

  • Method Details

    • encode

      public reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> encode(Publisher<?> inputStream, org.springframework.core.io.buffer.DataBufferFactory bufferFactory, org.springframework.core.ResolvableType elementType, @Nullable org.springframework.util.MimeType mimeType, @Nullable Map<String,Object> hints)
      Specified by:
      encode in interface org.springframework.core.codec.Encoder<Object>
      Overrides:
      encode in class AbstractJacksonEncoder<tools.jackson.dataformat.cbor.CBORMapper>