public class Jackson2CborEncoder extends AbstractJackson2Encoder
Object
to bytes of CBOR objects using Jackson.
Stream encoding is not supported yet.Jackson2CborDecoder
,
Add CBOR support to WebFluxJSON_VIEW_HINT, logger
Constructor and Description |
---|
Jackson2CborEncoder() |
Jackson2CborEncoder(ObjectMapper mapper,
org.springframework.util.MimeType... mimeTypes) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> |
encode(org.reactivestreams.Publisher<?> inputStream,
org.springframework.core.io.buffer.DataBufferFactory bufferFactory,
org.springframework.core.ResolvableType elementType,
org.springframework.util.MimeType mimeType,
Map<String,Object> hints) |
canEncode, customizeWriter, encodeValue, getAnnotation, getEncodableMimeTypes, getEncodeHints, getJsonEncoding, getStreamingMediaTypes, setStreamingMediaTypes
getHints, getJavaType, getMimeTypes, getObjectMapper, getParameter, supportsMimeType
public Jackson2CborEncoder()
public Jackson2CborEncoder(ObjectMapper mapper, org.springframework.util.MimeType... mimeTypes)
public reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> encode(org.reactivestreams.Publisher<?> inputStream, org.springframework.core.io.buffer.DataBufferFactory bufferFactory, org.springframework.core.ResolvableType elementType, org.springframework.util.MimeType mimeType, Map<String,Object> hints)
encode
in interface org.springframework.core.codec.Encoder<Object>
encode
in class AbstractJackson2Encoder