public class Jackson2SmileEncoder extends AbstractJackson2Encoder
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.Jackson2SmileDecoder
JSON_VIEW_HINT, logger
Constructor and Description |
---|
Jackson2SmileEncoder() |
Jackson2SmileEncoder(ObjectMapper mapper,
MimeType... mimeTypes) |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
getStreamingMediaTypeSeparator(MimeType mimeType)
Return the separator to use for the given mime type.
|
canEncode, customizeWriter, encode, encodeValue, getAnnotation, getEncodableMimeTypes, getEncodeHints, getJsonEncoding, getStreamingMediaTypes, setStreamingMediaTypes
getHints, getJavaType, getMimeTypes, getObjectMapper, getParameter, logWarningIfNecessary, supportsMimeType
public Jackson2SmileEncoder()
public Jackson2SmileEncoder(ObjectMapper mapper, MimeType... mimeTypes)
@Nullable protected byte[] getStreamingMediaTypeSeparator(@Nullable MimeType mimeType)
By default, this method returns a single byte 0 if the given
mime type is one of the configured streaming
mime types.
getStreamingMediaTypeSeparator
in class AbstractJackson2Encoder