Object to bytes of CBOR objects using Jackson.
Stream encoding is not supported yet.
Jackson2CborDecoder, Add CBOR support to WebFlux
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Flux | encode(Publisher<?>
the input stream of Objects to encode. If the input should be
encoded as a single value rather than as a stream of elements, an instance of
inputStream, DataBufferFactory Mono should be used.for creating output stream bufferFactory, ResolvableType DataBuffer'sthe expected type of elements in the input stream;
this type must have been previously passed to the elementType, MimeType canEncode
method and it must have returned true.the MIME type for the output content (optional) mimeType, Map<String, Object> additional information about how to encode hints)Overrides org. Implements org. T into a DataBuffer
output stream.
|
| Jackson2CborEncoder | back to summary |
|---|---|
| public Jackson2CborEncoder() | |
| Jackson2CborEncoder | back to summary |
|---|---|
| public Jackson2CborEncoder(ObjectMapper mapper, MimeType... mimeTypes) | |
| encode | back to summary |
|---|---|
| public Flux Overrides org. Implements org. Doc from org. Encode a stream of Objects of type
| |