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
574 stars 222 forks source link

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

Closed cowtowncoder closed 10 months ago

cowtowncoder commented 10 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.