|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.xml.transform.TraxUtils
public abstract class TraxUtils
Convenient utility methods for dealing with TrAX.
| Constructor Summary | |
|---|---|
TraxUtils()
|
|
| Method Summary | |
|---|---|
static javax.xml.transform.Source |
createStaxSource(javax.xml.stream.XMLEventReader eventReader)
Creates a StAX Source for the given XMLEventReader. |
static javax.xml.transform.Source |
createStaxSource(javax.xml.stream.XMLStreamReader streamReader)
Creates a StAX Source for the given XMLStreamReader. |
static javax.xml.stream.XMLEventReader |
getXMLEventReader(javax.xml.transform.Source source)
Returns the XMLEventReader for the given StAX Source. |
static javax.xml.stream.XMLEventWriter |
getXMLEventWriter(javax.xml.transform.Result result)
Returns the XMLEventWriter for the given StAX Result. |
static javax.xml.stream.XMLStreamReader |
getXMLStreamReader(javax.xml.transform.Source source)
Returns the XMLStreamReader for the given StAX Source. |
static javax.xml.stream.XMLStreamWriter |
getXMLStreamWriter(javax.xml.transform.Result result)
Returns the XMLStreamWriter for the given StAX Result. |
static boolean |
isStaxResult(javax.xml.transform.Result result)
Indicates whether the given Result is a StAX Result. |
static boolean |
isStaxSource(javax.xml.transform.Source source)
Indicates whether the given Source is a StAX Source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TraxUtils()
| Method Detail |
|---|
public static boolean isStaxSource(javax.xml.transform.Source source)
Source is a StAX Source.
true if source is a Spring-WS StaxSource or JAXP 1.4 StAXSource; false otherwise.public static boolean isStaxResult(javax.xml.transform.Result result)
Result is a StAX Result.
true if result is a Spring-WS StaxResult or JAXP 1.4 StAXResult; false otherwise.public static javax.xml.stream.XMLStreamReader getXMLStreamReader(javax.xml.transform.Source source)
XMLStreamReader for the given StAX Source.
source - a Spring-WS StaxSource or StAXSource
XMLStreamReader
java.lang.IllegalArgumentException - if source is neither a Spring-WS StaxSource or StAXSourcepublic static javax.xml.stream.XMLEventReader getXMLEventReader(javax.xml.transform.Source source)
XMLEventReader for the given StAX Source.
source - a Spring-WS StaxSource or StAXSource
XMLEventReader
java.lang.IllegalArgumentException - if source is neither a Spring-WS StaxSource or StAXSourcepublic static javax.xml.stream.XMLStreamWriter getXMLStreamWriter(javax.xml.transform.Result result)
XMLStreamWriter for the given StAX Result.
result - a Spring-WS StaxResult or StAXResult
XMLStreamReader
java.lang.IllegalArgumentException - if source is neither a Spring-WS StaxResult or StAXResultpublic static javax.xml.stream.XMLEventWriter getXMLEventWriter(javax.xml.transform.Result result)
XMLEventWriter for the given StAX Result.
result - a Spring-WS StaxResult or StAXResult
XMLStreamReader
java.lang.IllegalArgumentException - if source is neither a Spring-WS StaxResult or StAXResultpublic static javax.xml.transform.Source createStaxSource(javax.xml.stream.XMLStreamReader streamReader)
Source for the given XMLStreamReader. Returns a StAXSource under JAXP 1.4
or higher, or a StaxSource otherwise.
streamReader - the StAX stream reader
streamReader
public static javax.xml.transform.Source createStaxSource(javax.xml.stream.XMLEventReader eventReader)
throws javax.xml.stream.XMLStreamException
Source for the given XMLEventReader. Returns a StAXSource under JAXP 1.4
or higher, or a StaxSource otherwise.
eventReader - the StAX event reader
streamReader
javax.xml.stream.XMLStreamException - in case of StAX errors
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||