|
||||||||||
| 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.
| Nested Class Summary | |
|---|---|
static interface |
TraxUtils.ResultCallback
Callback interface invoked on each sort of Result. |
static interface |
TraxUtils.SourceCallback
Callback interface invoked on each sort of Source. |
| Constructor Summary | |
|---|---|
TraxUtils()
|
|
| Method Summary | |
|---|---|
static javax.xml.transform.Source |
createStaxSource(javax.xml.stream.XMLEventReader eventReader)
Deprecated. In favor of StaxUtils.createStaxSource(XMLEventReader) |
static javax.xml.transform.Source |
createStaxSource(javax.xml.stream.XMLStreamReader streamReader)
Deprecated. In favor of StaxUtils.createStaxSource(XMLStreamReader) |
static void |
doWithResult(javax.xml.transform.Result result,
TraxUtils.ResultCallback callback)
Performs the given callback operation on a Result. |
static void |
doWithSource(javax.xml.transform.Source source,
TraxUtils.SourceCallback callback)
Performs the given callback operation on a Source. |
static org.w3c.dom.Document |
getDocument(javax.xml.transform.dom.DOMSource source)
Returns the Document of the given DOMSource. |
static javax.xml.stream.XMLEventReader |
getXMLEventReader(javax.xml.transform.Source source)
Deprecated. In favor of StaxUtils.getXMLEventReader(Source) |
static javax.xml.stream.XMLEventWriter |
getXMLEventWriter(javax.xml.transform.Result result)
Deprecated. In favor of StaxUtils.getXMLEventWriter(Result) |
static javax.xml.stream.XMLStreamReader |
getXMLStreamReader(javax.xml.transform.Source source)
Deprecated. In favor of StaxUtils.getXMLStreamReader(Source) |
static javax.xml.stream.XMLStreamWriter |
getXMLStreamWriter(javax.xml.transform.Result result)
Deprecated. In favor of StaxUtils.getXMLStreamWriter(Result) |
static boolean |
isStaxResult(javax.xml.transform.Result result)
Deprecated. In favor of StaxUtils.isStaxResult(Result) |
static boolean |
isStaxSource(javax.xml.transform.Source source)
Deprecated. In favor of StaxUtils.isStaxSource(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 |
|---|
@Deprecated public static boolean isStaxSource(javax.xml.transform.Source source)
StaxUtils.isStaxSource(Source)
Source is a StAX Source.
true if source is a Spring-WS StaxSource or JAXP 1.4 StAXSource; false otherwise.@Deprecated public static boolean isStaxResult(javax.xml.transform.Result result)
StaxUtils.isStaxResult(Result)
Result is a StAX Result.
true if result is a Spring-WS StaxResult or JAXP 1.4 StAXResult; false otherwise.@Deprecated public static javax.xml.stream.XMLStreamReader getXMLStreamReader(javax.xml.transform.Source source)
StaxUtils.getXMLStreamReader(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 StAXSource@Deprecated public static javax.xml.stream.XMLEventReader getXMLEventReader(javax.xml.transform.Source source)
StaxUtils.getXMLEventReader(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 StAXSource@Deprecated public static javax.xml.stream.XMLStreamWriter getXMLStreamWriter(javax.xml.transform.Result result)
StaxUtils.getXMLStreamWriter(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 StAXResult@Deprecated public static javax.xml.stream.XMLEventWriter getXMLEventWriter(javax.xml.transform.Result result)
StaxUtils.getXMLEventWriter(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 StAXResult@Deprecated public static javax.xml.transform.Source createStaxSource(javax.xml.stream.XMLStreamReader streamReader)
StaxUtils.createStaxSource(XMLStreamReader)
Source for the given XMLStreamReader. Returns a StAXSource under JAXP 1.4
or higher, or a StaxSource otherwise.
streamReader - the StAX stream reader
streamReader
@Deprecated
public static javax.xml.transform.Source createStaxSource(javax.xml.stream.XMLEventReader eventReader)
throws javax.xml.stream.XMLStreamException
StaxUtils.createStaxSource(XMLEventReader)
Source for the given XMLEventReader. Returns a StAXSource under JAXP 1.4
or higher, or a StaxSource otherwise.
eventReader - the StAX event reader
eventReader
javax.xml.stream.XMLStreamException - in case of StAX errorspublic static org.w3c.dom.Document getDocument(javax.xml.transform.dom.DOMSource source)
Document of the given DOMSource.
source - the DOM source
public static void doWithSource(javax.xml.transform.Source source,
TraxUtils.SourceCallback callback)
throws java.lang.Exception
Source. Supports both the JAXP 1.4
StAXSource and the Spring 3.0 StaxSource.
source - source to look atcallback - the callback to invoke for each kind of source
java.lang.Exception
public static void doWithResult(javax.xml.transform.Result result,
TraxUtils.ResultCallback callback)
throws java.lang.Exception
Result. Supports both the JAXP 1.4
StAXResult and the Spring 3.0 StaxSource.
result - result to look atcallback - the callback to invoke for each kind of result
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||