Interface TraxUtils.SourceCallback
- Enclosing class:
- TraxUtils
public static interface TraxUtils.SourceCallback
Callback interface invoked on each sort of
Source
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Perform an operation on the node contained in aDOMSource
.void
saxSource
(XMLReader reader, InputSource inputSource) void
Perform an operation on the system identifier contained in anySource
.void
staxSource
(XMLEventReader eventReader) void
staxSource
(XMLStreamReader streamReader) Perform an operation on theXMLStreamReader
contained in a JAXP 1.4StAXSource
or SpringStaxSource
.void
streamSource
(InputStream inputStream) Perform an operation on theInputStream
contained in aStreamSource
.void
streamSource
(Reader reader) Perform an operation on theReader
contained in aStreamSource
.
-
Method Details
-
domSource
Perform an operation on the node contained in aDOMSource
.- Parameters:
node
- the node- Throws:
Exception
-
saxSource
- Parameters:
reader
- the reader, can benull
inputSource
- the input source, can benull
- Throws:
Exception
-
staxSource
- Parameters:
eventReader
- the reader- Throws:
Exception
-
staxSource
Perform an operation on theXMLStreamReader
contained in a JAXP 1.4StAXSource
or SpringStaxSource
.- Parameters:
streamReader
- the reader- Throws:
Exception
-
streamSource
Perform an operation on theInputStream
contained in aStreamSource
.- Parameters:
inputStream
- the input stream- Throws:
Exception
-
streamSource
Perform an operation on theReader
contained in aStreamSource
.- Parameters:
reader
- the reader- Throws:
Exception
-
source
Perform an operation on the system identifier contained in anySource
.- Parameters:
systemId
- the system identifier- Throws:
Exception
-