spring-framework / org.springframework.util.xml / StaxUtils / createCustomStaxSource

createCustomStaxSource

open static fun createCustomStaxSource(streamReader: XMLStreamReader): Source

Create a custom, non-JAXP 1.4 StAX Source for the given XMLStreamReader.

Parameters

streamReader - the StAX stream reader

Return
a source wrapping the streamReader

open static fun createCustomStaxSource(eventReader: XMLEventReader): Source

Create a custom, non-JAXP 1.4 StAX Source for the given XMLEventReader.

Parameters

eventReader - the StAX event reader

Return
a source wrapping the eventReader