Class ActiveStreamSource

java.lang.Object
javax.xml.transform.stream.StreamSource
net.sf.saxon.resource.ActiveStreamSource
All Implemented Interfaces:
Source, ActiveSource

public class ActiveStreamSource extends StreamSource implements 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
  • Constructor Details

  • Method Details

    • deliver

      public void deliver(Receiver receiver, ParseOptions options) throws XPathException
      Deliver the content of the source to a supplied Receiver
      Specified by:
      deliver in interface ActiveSource
      Parameters:
      receiver - the receiver to which events representing the parsed XML document will be sent
      options - options for parsing the source
      Throws:
      XPathException - if parsing fails for any reason. The detailed diagnostics will have been sent to the error reporter.