public abstract class TraxUtils extends Object
Modifier and Type | Class and Description |
---|---|
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 and Description |
---|
TraxUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
doWithResult(Result result,
TraxUtils.ResultCallback callback)
|
static void |
doWithSource(Source source,
TraxUtils.SourceCallback callback)
|
static Document |
getDocument(DOMSource source)
|
public static Document getDocument(DOMSource source)
source
- the DOM sourcepublic 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 sourceException
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 resultException