public class Jackson2JsonEncoder extends AbstractJackson2Encoder
Object
stream to a byte stream of JSON objects using Jackson 2.9.
For non-streaming use cases, Flux
elements are collected into a List
before serialization for performance reason.Jackson2JsonDecoder
JSON_VIEW_HINT
Constructor and Description |
---|
Jackson2JsonEncoder() |
Jackson2JsonEncoder(ObjectMapper mapper,
MimeType... mimeTypes) |
Modifier and Type | Method and Description |
---|---|
protected ObjectWriter |
customizeWriter(ObjectWriter writer,
MimeType mimeType,
ResolvableType elementType,
java.util.Map<java.lang.String,java.lang.Object> hints) |
canEncode, encode, getAnnotation, getEncodableMimeTypes, getEncodeHints, getJsonEncoding, getStreamingMediaTypes, setStreamingMediaTypes
getHints, getJavaType, getMimeTypes, getObjectMapper, getParameter, supportsMimeType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContentLength
public Jackson2JsonEncoder()
public Jackson2JsonEncoder(ObjectMapper mapper, MimeType... mimeTypes)
protected ObjectWriter customizeWriter(ObjectWriter writer, @Nullable MimeType mimeType, ResolvableType elementType, @Nullable java.util.Map<java.lang.String,java.lang.Object> hints)
customizeWriter
in class AbstractJackson2Encoder