FasterXML / jackson-dataformat-xml

Extension for Jackson JSON processor that adds support for serializing POJOs as XML (and deserializing from XML) as an alternative to JSON
Apache License 2.0
561 stars 221 forks source link

Add `XmlMapper.createGenerator(XMLStreamWriter)` and `XmlMapper.createParser(XMLStreamReader)` overloads #631

Closed cowtowncoder closed 5 months ago

cowtowncoder commented 5 months ago

Currently XmlMapper has convenience overrides for readValue() and writeValue() methods that take Stax reader/writer (XmlStreamReader, XmlStreamWriter), but no factory methods for creating generators or parsers -- these do exist in XmlFactory so it would be easy to delegate (plus they are actually needed for readValue()/writeValue() overrides).

So let's add overloads.