Class DelegatingFeed

  • All Implemented Interfaces:
    javax.xml.transform.Result, Receiver

    public abstract class DelegatingFeed
    extends ItemFeed
    A DelegatingFeed is an ItemFeed that delegates most of its work to a supplied Outputter. This allows standard Outputter code (for example, the WherePopulatedReceiver) to be used in a streaming pipeline.
    • Method Detail

      • getResultFeed

        public ItemFeed getResultFeed()
        Get the result, that is, the ItemFeed to which the items in the result of the expression should be supplied
        Overrides:
        getResultFeed in class ItemFeed
        Returns:
        the Outputter that consumes the results of this expression
      • append

        public void append​(Item item)
                    throws XPathException
        Description copied from class: ItemFeed
        Supply one item towards the streamed input of the expression
        Specified by:
        append in interface Receiver
        Specified by:
        append in class ItemFeed
        Parameters:
        item - the item to be supplied
        Throws:
        XPathException - if the operation fails