Package net.sf.saxon.resource
Class ActiveStreamSource
java.lang.Object
javax.xml.transform.stream.StreamSource
net.sf.saxon.resource.ActiveStreamSource
- All Implemented Interfaces:
Source
,ActiveSource
An extension of the
StreamSource
object providing a deliver(Receiver, ParseOptions)
method
so that the contents of the source can be delivered to a supplied Receiver
-
Field Summary
Fields inherited from class javax.xml.transform.stream.StreamSource
FEATURE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deliver
(Receiver receiver, ParseOptions options) Deliver the content of the source to a supplied ReceiverMethods inherited from class javax.xml.transform.stream.StreamSource
getInputStream, getPublicId, getReader, getSystemId, isEmpty, setInputStream, setPublicId, setReader, setSystemId, setSystemId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.xml.transform.Source
getSystemId, isEmpty, setSystemId
-
Constructor Details
-
ActiveStreamSource
Create anActiveStreamSource
wrapping a suppliedStreamSource
- Parameters:
in
- the suppliedStreamSource
-
-
Method Details
-
deliver
Deliver the content of the source to a supplied Receiver- 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.
-