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(Publisher<org.springframework.core.io.buffer.DataBuffer> input,
org.springframework.core.ResolvableType elementType,
org.springframework.util.MimeType mimeType,
Map<String,Object> hints) |
int |
getMaxInMemorySize()
Return the
configured byte count limit. |
void |
setMaxInMemorySize(int byteCount)
Set the max number of bytes that can be buffered by this decoder.
|
canDecode, decodeToMono, getDecodableMimeTypes, getLogger, setLoggerpublic void setMaxInMemorySize(int byteCount)
DataBufferLimitException is raised.
By default this is set to 256K.
byteCount - the max number of bytes to buffer, or -1 for unlimitedpublic int getMaxInMemorySize()
configured byte count limit.