Class ActiveStreamSource

  • All Implemented Interfaces:
    javax.xml.transform.Source, ActiveSource

    public class ActiveStreamSource
    extends javax.xml.transform.stream.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
    • Field Summary

      • Fields inherited from class javax.xml.transform.stream.StreamSource

        FEATURE
    • Constructor Summary

      Constructors 
      Constructor Description
      ActiveStreamSource​(javax.xml.transform.stream.StreamSource in)
      Create an ActiveStreamSource wrapping a supplied StreamSource
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deliver​(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
      • 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 Detail

      • ActiveStreamSource

        public ActiveStreamSource​(javax.xml.transform.stream.StreamSource in)
        Create an ActiveStreamSource wrapping a supplied StreamSource
        Parameters:
        in - the supplied StreamSource
    • Method Detail

      • 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.