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:
StartDocument
StartElement
root
StartElement
child
Characters
foo
EndElement
child
StartElement
child
Characters
bar
EndElement
child
EndElement
root
Note 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) |