| java.lang.Object | |
| ↳ | org.springframework.util.xml.StaxUtils | 
Convenience methods for working with the StAX API.
In particular, methods for using StAX (javax.xml.stream) in combination with the TrAX API
 (javax.xml.transform), and converting StAX readers/writers into SAX readers/handlers and vice-versa.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Create a SAX  ContentHandlerthat writes to the given StAXXMLStreamWriter. | |||||||||||
| Create a SAX  ContentHandlerthat writes events to the given StAXXMLEventWriter. | |||||||||||
| Create a custom, non-JAXP 1.4 StAX  Resultfor the givenXMLEventWriter. | |||||||||||
| Create a custom, non-JAXP 1.4 StAX  Resultfor the givenXMLStreamWriter. | |||||||||||
| Create a custom, non-JAXP 1.4 StAX  Sourcefor the givenXMLEventReader. | |||||||||||
| Create a custom, non-JAXP 1.4 StAX  Sourcefor the givenXMLStreamReader. | |||||||||||
| Return a  XMLStreamReaderthat reads from aXMLEventReader. | |||||||||||
| Return a  XMLStreamWriterthat writes to aXMLEventWriter. | |||||||||||
| Create a StAX  Resultfor the givenXMLStreamWriter. | |||||||||||
| Create a StAX  Resultfor the givenXMLEventWriter. | |||||||||||
| Create a StAX  Sourcefor the givenXMLEventReader. | |||||||||||
| Create a StAX  Sourcefor the givenXMLStreamReader. | |||||||||||
| Create a SAX  XMLReaderthat reads from the given StAXXMLStreamReader. | |||||||||||
| Create a SAX  XMLReaderthat reads from the given StAXXMLEventReader. | |||||||||||
| Return the  XMLEventReaderfor the given StAX Source. | |||||||||||
| Return the  XMLEventWriterfor the given StAX Result. | |||||||||||
| Return the  XMLStreamReaderfor the given StAX Source. | |||||||||||
| Return the  XMLStreamWriterfor the given StAX Result. | |||||||||||
| Indicate whether the given  Resultis a StAX Result. | |||||||||||
| Indicate whether the given  Sourceis a StAX Source. | |||||||||||
| [Expand] Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class
  java.lang.Object | |||||||||||
Create a SAX ContentHandler that writes to the given StAX XMLStreamWriter.
| streamWriter | the StAX stream writer | 
|---|
streamWriter
Create a SAX ContentHandler that writes events to the given StAX XMLEventWriter.
| eventWriter | the StAX event writer | 
|---|
eventWriter
Create a custom, non-JAXP 1.4 StAX Result for the given XMLEventWriter.
| eventWriter | the StAX event writer | 
|---|
eventWriter
Create a custom, non-JAXP 1.4 StAX Result for the given XMLStreamWriter.
| streamWriter | the StAX stream writer | 
|---|
streamWriter
Create a custom, non-JAXP 1.4 StAX Source for the given XMLEventReader.
| eventReader | the StAX event reader | 
|---|
eventReader
Create a custom, non-JAXP 1.4 StAX Source for the given XMLStreamReader.
| streamReader | the StAX stream reader | 
|---|
streamReader
Return a XMLStreamReader that reads from a XMLEventReader. Useful, because the StAX
 XMLInputFactory allows one to create a event reader from a stream reader, but not vice-versa.
| XMLStreamException | 
|---|
Return a XMLStreamWriter that writes to a XMLEventWriter.
Create a StAX Result for the given XMLStreamWriter.
 
If JAXP 1.4 is available, this method returns a StAXResult; otherwise it returns a custom StAX Result.
| streamWriter | the StAX stream writer | 
|---|
streamWriterCreate a StAX Result for the given XMLEventWriter.
 
If JAXP 1.4 is available, this method returns a StAXResult; otherwise it returns a custom StAX Result.
| eventWriter | the StAX event writer | 
|---|
streamReader| XMLStreamException | in case of StAX errors | 
|---|
Create a StAX Source for the given XMLEventReader.
 
If JAXP 1.4 is available, this method returns a StAXSource; otherwise it returns a custom StAX Source.
| eventReader | the StAX event reader | 
|---|
eventReader| XMLStreamException | in case of StAX errors | 
|---|
Create a StAX Source for the given XMLStreamReader.
 
If JAXP 1.4 is available, this method returns a StAXSource; otherwise it returns a custom StAX Source.
| streamReader | the StAX stream reader | 
|---|
streamReaderCreate a SAX XMLReader that reads from the given StAX XMLStreamReader.
| streamReader | the StAX stream reader | 
|---|
streamWriter
Create a SAX XMLReader that reads from the given StAX XMLEventReader.
| eventReader | the StAX event reader | 
|---|
eventWriter
Return the XMLEventReader for the given StAX Source.
| source | a custom StAX Sourceor
 JAXP 1.4 StAXSource | 
|---|
XMLEventReader| IllegalArgumentException | if sourceis neither a custom StAX Source
 nor a JAXP 1.4 StAXSource | 
|---|
Return the XMLEventWriter for the given StAX Result.
| result | a custom StAX Resultor
 JAXP 1.4 StAXResult | 
|---|
XMLStreamReader| IllegalArgumentException | if sourceis neither a custom StAX Result
 nor a JAXP 1.4 StAXResult | 
|---|
Return the XMLStreamReader for the given StAX Source.
| source | a custom StAX Sourceor
 JAXP 1.4 StAXSource | 
|---|
XMLStreamReader| IllegalArgumentException | if sourceis neither a custom StAX Source
 nor JAXP 1.4 StAXSource | 
|---|
Return the XMLStreamWriter for the given StAX Result.
| result | a custom StAX Resultor
 JAXP 1.4 StAXResult | 
|---|
XMLStreamReader| IllegalArgumentException | if sourceis neither a custom StAX Result
 nor a JAXP 1.4 StAXResult | 
|---|
Indicate whether the given Result is a StAX Result.
true if result is a custom Stax Result or JAXP
 1.4 StAXResult; false otherwise.
Indicate whether the given Source is a StAX Source.
true if source is a custom StAX source or JAXP
 1.4 StAXSource; false otherwise.