public class Jaxb2XmlDecoder extends AbstractDecoder<Object>
Objects (POJOs).Jaxb2XmlEncoder| Constructor and Description |
|---|
Jaxb2XmlDecoder() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDecode(ResolvableType elementType,
MimeType mimeType,
Object... hints)
Whether the decoder supports the given target element type and the MIME
type of the source stream.
|
reactor.core.publisher.Flux<Object> |
decode(org.reactivestreams.Publisher<DataBuffer> inputStream,
ResolvableType elementType,
MimeType mimeType,
Object... hints)
Decode a
DataBuffer input stream into a Flux of T. |
decodeToMono, getDecodableMimeTypespublic boolean canDecode(ResolvableType elementType, MimeType mimeType, Object... hints)
DecodercanDecode in interface Decoder<Object>canDecode in class AbstractDecoder<Object>elementType - the target element type for the output streammimeType - the mime type associated with the stream to decodehints - additional information about how to do decode, optionaltrue if supported, false otherwisepublic reactor.core.publisher.Flux<Object> decode(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Object... hints)
DecoderDataBuffer input stream into a Flux of T.inputStream - the DataBuffer input stream to decodeelementType - the expected type of elements in the output stream;
this type must have been previously passed to the Decoder.canDecode(org.springframework.core.ResolvableType, org.springframework.util.MimeType, java.lang.Object...)
method and it must have returned true.mimeType - the MIME type associated with the input stream, optionalhints - additional information about how to do decode, optional