Class ActiveDOMSource

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

    public class ActiveDOMSource
    extends javax.xml.transform.dom.DOMSource
    implements ActiveSource
    An extension of DOMSource that implements the ActiveSource interface, so it knows how to send itself to a Receiver
    • Field Summary

      • Fields inherited from class javax.xml.transform.dom.DOMSource

    • Constructor Summary

      Constructor Description
      ActiveDOMSource​(javax.xml.transform.dom.DOMSource source)
      Construct an ActiveDOMSource from a DOMSource
      ActiveDOMSource​(org.w3c.dom.Node node, java.lang.String systemId)  
    • 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.dom.DOMSource

        getNode, getSystemId, isEmpty, setNode, 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

      • ActiveDOMSource

        public ActiveDOMSource​(org.w3c.dom.Node node,
                               java.lang.String systemId)
      • ActiveDOMSource

        public ActiveDOMSource​(javax.xml.transform.dom.DOMSource source)
        Construct an ActiveDOMSource from a DOMSource
        source - the input source object, whose properties are copied.
    • Method Detail

      • deliver

        public void deliver​(Receiver receiver,
                            ParseOptions options)
                     throws XPathException
        Description copied from interface: ActiveSource
        Deliver 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:
        deliver in interface ActiveSource
        receiver - the receiver to which events representing the parsed XML document will be sent
        options - options for parsing the source
        XPathException - if parsing fails for any reason. The detailed diagnostics will have been sent to the error reporter.