Package net.sf.saxon.dom
Class ActiveDOMSource
java.lang.Object
javax.xml.transform.dom.DOMSource
net.sf.saxon.dom.ActiveDOMSource
- All Implemented Interfaces:
Source,ActiveSource
An extension of
DOMSource that implements the ActiveSource interface,
so it knows how to send itself to a Receiver-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionActiveDOMSource(DOMSource source) Construct an ActiveDOMSource from a DOMSourceActiveDOMSource(Node node, String systemId) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeliver(Receiver receiver, ParseOptions options) Deliver the content of the source to a supplied Receiver.Methods inherited from class javax.xml.transform.dom.DOMSource
getNode, getSystemId, isEmpty, setNode, setSystemIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.xml.transform.Source
getSystemId, isEmpty, setSystemId
-
Constructor Details
-
ActiveDOMSource
-
ActiveDOMSource
Construct an ActiveDOMSource from a DOMSource- Parameters:
source- the input source object, whose properties are copied.
-
-
Method Details
-
deliver
Description copied from interface:ActiveSourceDeliver 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:
deliverin 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.
-