Codecs
The org.springframework.core.codec package provides the following strategy interfaces:
-
Encoderto encodePublisher<T>into a stream of data buffers. -
Decoderto decodePublisher<DataBuffer>into a stream of higher level objects.
The spring-core module provides byte[], ByteBuffer, DataBuffer, Resource, and
String encoder and decoder implementations. The spring-web module adds Jackson JSON,
Jackson Smile, JAXB2, Protocol Buffers and other encoders and decoders. See
Codecs in the WebFlux section.