Package net.sf.saxon.pull
Class ActiveStAXSource
java.lang.Object
net.sf.saxon.pull.ActiveStAXSource
- All Implemented Interfaces:
Source
,ActiveSource
An extension of StAXSource that makes the source active: that is, able
to deliver itself to a Saxon
Receiver
.
Saxon can only handle a StAXSource that wraps an XMLStreamReader (not an XMLEventReader)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deliver
(Receiver receiver, ParseOptions options) Deliver the content of the source to a supplied Receiver.static ActiveStAXSource
fromStAXSource
(StAXSource source) void
setSystemId
(String systemId)
-
Constructor Details
-
ActiveStAXSource
-
-
Method Details
-
fromStAXSource
- Throws:
XMLStreamException
-
setSystemId
- Specified by:
setSystemId
in interfaceSource
-
getSystemId
- Specified by:
getSystemId
in interfaceSource
-
deliver
Description copied from interface:ActiveSource
Deliver the content of the source to a supplied Receiver.For many (but not all) implementations of
Source
, this method consumes the source and can therefore only be called once.- Specified by:
deliver
in interfaceActiveSource
- Parameters:
receiver
- the receiver to which events representing the parsed XML document will be sentoptions
- options for parsing the source- Throws:
XPathException
- if parsing fails for any reason. The detailed diagnostics will have been sent to the error reporter.
-