Interface TraxUtils.ResultCallback
- Enclosing class:
- TraxUtils
public static interface TraxUtils.ResultCallback
Callback interface invoked on each sort of
Result
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Perform an operation on the node contained in aDOMResult
.void
Perform an operation on the system identifier contained in anyResult
.void
saxResult
(ContentHandler contentHandler, LexicalHandler lexicalHandler) void
staxResult
(XMLEventWriter eventWriter) void
staxResult
(XMLStreamWriter streamWriter) Perform an operation on theXMLStreamWriter
contained in a JAXP 1.4StAXResult
or SpringStaxResult
.void
streamResult
(OutputStream outputStream) Perform an operation on theOutputStream
contained in aStreamResult
.void
streamResult
(Writer writer) Perform an operation on theWriter
contained in aStreamResult
.
-
Method Details
-
domResult
Perform an operation on the node contained in aDOMResult
.- Parameters:
node
- the node- Throws:
Exception
-
saxResult
- Parameters:
contentHandler
- the content handlerlexicalHandler
- the lexicalHandler, can benull
- Throws:
Exception
-
staxResult
- Parameters:
eventWriter
- the writer- Throws:
Exception
-
staxResult
Perform an operation on theXMLStreamWriter
contained in a JAXP 1.4StAXResult
or SpringStaxResult
.- Parameters:
streamWriter
- the writer- Throws:
Exception
-
streamResult
Perform an operation on theOutputStream
contained in aStreamResult
.- Parameters:
outputStream
- the output stream- Throws:
Exception
-
streamResult
Perform an operation on theWriter
contained in aStreamResult
.- Parameters:
writer
- the writer- Throws:
Exception
-
result
Perform an operation on the system identifier contained in anyResult
.- Parameters:
systemId
- the system identifier- Throws:
Exception
-