|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 void |
doWithResult(Result result,
TraxUtils.ResultCallback callback)
Performs the given callback operation on a Result . |
static void |
doWithSource(Source source,
TraxUtils.SourceCallback callback)
Performs the given callback operation on a Source . |
static Document |
getDocument(DOMSource source)
Returns the Document of the given DOMSource . |
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 Document getDocument(DOMSource source)
Document
of the given DOMSource
.
source
- the DOM source
public static void doWithSource(Source source, TraxUtils.SourceCallback callback) throws 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
Exception
public static void doWithResult(Result result, TraxUtils.ResultCallback callback) throws 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
Exception
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |