public class XmlEventDecoder extends org.springframework.core.codec.AbstractDecoder<XMLEvent>
DataBuffer stream into a stream of XMLEvents.
Given the following XML:
<root>
<child>foo</child>
<child>bar</child>
</root>
this decoder will produce a Flux with the following events:
StartDocumentStartElement rootStartElement childCharacters fooEndElement childStartElement childCharacters barEndElement childEndElement rootNote that this decoder is not registered by default but is used internally by other decoders which are registered by default.
| Constructor and Description |
|---|
XmlEventDecoder() |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Flux<XMLEvent> |
decode(org.reactivestreams.Publisher<org.springframework.core.io.buffer.DataBuffer> input,
org.springframework.core.ResolvableType elementType,
org.springframework.util.MimeType mimeType,
Map<String,Object> hints) |