public class Jaxb2XmlEncoder extends AbstractSingleValueEncoder<Object>
Object stream to a byte stream containing XML elements.Jaxb2XmlDecoder| Constructor and Description |
|---|
Jaxb2XmlEncoder() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEncode(ResolvableType elementType,
MimeType mimeType,
Object... hints)
Whether the encoder supports the given source element type and the MIME
type for the output stream.
|
protected reactor.core.publisher.Flux<DataBuffer> |
encode(Object value,
DataBufferFactory dataBufferFactory,
ResolvableType type,
MimeType mimeType,
Object... hints)
Encode
T to an output DataBuffer stream. |
encodegetEncodableMimeTypespublic boolean canEncode(ResolvableType elementType, MimeType mimeType, Object... hints)
EncodercanEncode in interface Encoder<Object>canEncode in class AbstractEncoder<Object>elementType - the type of elements in the source streammimeType - the MIME type for the output streamhints - additional information about how to do encode, optionaltrue if supported, false otherwiseprotected reactor.core.publisher.Flux<DataBuffer> encode(Object value, DataBufferFactory dataBufferFactory, ResolvableType type, MimeType mimeType, Object... hints)
AbstractSingleValueEncoderT to an output DataBuffer stream.encode in class AbstractSingleValueEncoder<Object>value - the value to processdataBufferFactory - a buffer factory used to create the outputtype - the stream element type to processmimeType - the mime type to processhints - Additional information about how to do decode, optional