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

getXMLStreamReader

@Nullable open static fun getXMLStreamReader(source: Source): XMLStreamReader

Return the XMLStreamReader for the given StAX Source.

Parameters

source - a JAXP 1.4 StAXSource

Exceptions

IllegalArgumentException - if source isn't a JAXP 1.4 StAXSource or custom StAX Source

Return
the XMLStreamReader