Package com.saxonica.ee.stream.feed
Class DelegatingFeed
- java.lang.Object
-
- net.sf.saxon.event.Outputter
-
- net.sf.saxon.event.ProxyOutputter
-
- com.saxonica.ee.stream.feed.ItemFeed
-
- com.saxonica.ee.stream.feed.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.
-
-
Field Summary
-
Fields inherited from class net.sf.saxon.event.Outputter
pipelineConfiguration, systemId
-
-
Constructor Summary
Constructors Constructor Description DelegatingFeed(ProxyOutputter proxy, XPathContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
append(Item item)
Supply one item towards the streamed input of the expressionItemFeed
getResult()
Get the result, that is, the ItemFeed to which the items in the result of the expression should be supplied-
Methods inherited from class com.saxonica.ee.stream.feed.ItemFeed
append, close, dynamicError, endSelectedParentNode, getContext, getExpression, getTerminator, hasFailed, open, processItems, setExpression, setHasFailed, setTerminator, startSelectedParentNode
-
Methods inherited from class net.sf.saxon.event.ProxyOutputter
attribute, characters, comment, endDocument, endElement, getNextOutputter, namespace, open, processingInstruction, setLocation, setUnparsedEntity, startContent, startDocument, startElement, startElement, usesTypeAnnotations
-
Methods inherited from class net.sf.saxon.event.Outputter
getConfiguration, getPipelineConfiguration, getStringReceiver, getSystemId, namespaces, setPipelineConfiguration, setSystemId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.saxon.event.Receiver
handlesAppend
-
-
-
-
Constructor Detail
-
DelegatingFeed
public DelegatingFeed(ProxyOutputter proxy, XPathContext context)
-
-
Method Detail
-
getResult
public ItemFeed getResult()
Get the result, that is, the ItemFeed to which the items in the result of the expression should be supplied
-
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 interfaceReceiver
- Specified by:
append
in classItemFeed
- Parameters:
item
- the item to be supplied- Throws:
XPathException
- if the operation fails
-
-