public class XmlEventDecoder extends AbstractDecoder<XMLEvent>
DataBuffer stream into a stream of XMLEvents. That is, given
the following XML:
<root>
<child>foo</child>
<child>bar</child>
</root>
this method with result in a flux with the following events:
StartDocumentStartElement rootStartElement childCharacters fooEndElement childStartElement childCharacters barEndElement childEndElement root| Constructor and Description |
|---|
XmlEventDecoder() |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Flux<XMLEvent> |
decode(org.reactivestreams.Publisher<DataBuffer> inputStream,
ResolvableType elementType,
MimeType mimeType,
Object... hints)
Decode a
DataBuffer input stream into a Flux of T. |
canDecode, decodeToMono, getDecodableMimeTypespublic reactor.core.publisher.Flux<XMLEvent> 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