Package net.sf.saxon.resource
Class ActiveStreamSource
- java.lang.Object
-
- javax.xml.transform.stream.StreamSource
-
- net.sf.saxon.resource.ActiveStreamSource
-
- All Implemented Interfaces:
javax.xml.transform.Source,ActiveSource
public class ActiveStreamSource extends javax.xml.transform.stream.StreamSource implements ActiveSource
An extension of theStreamSourceobject providing adeliver(Receiver, ParseOptions)method so that the contents of the source can be delivered to a suppliedReceiver
-
-
Constructor Summary
Constructors Constructor Description ActiveStreamSource(javax.xml.transform.stream.StreamSource in)Create anActiveStreamSourcewrapping a suppliedStreamSource
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeliver(Receiver receiver, ParseOptions options)Deliver the content of the source to a supplied Receiver-
Methods inherited from class javax.xml.transform.stream.StreamSource
getInputStream, getPublicId, getReader, getSystemId, isEmpty, setInputStream, setPublicId, setReader, setSystemId, setSystemId
-
-
-
-
Method Detail
-
deliver
public void deliver(Receiver receiver, ParseOptions options) throws XPathException
Deliver the content of the source to a supplied Receiver- 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.
-
-