Package com.saxonica.ee.stream.feed
Class CallableFeed
java.lang.Object
net.sf.saxon.event.Outputter
net.sf.saxon.event.ProxyOutputter
com.saxonica.ee.stream.feed.ItemFeed
com.saxonica.ee.stream.feed.CallableFeed
A CallableFeed is used to wrap an expression that does (a) not have intrinsic capability
to accept streamed input, and (b) does not expect any operand to be a sequence, and (c)
implements the Callable interface.
-
Field Summary
Fields inherited from class net.sf.saxon.event.Outputter
pipelineConfiguration, systemId
Fields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
-
Constructor Summary
ConstructorsConstructorDescriptionCallableFeed
(Callable function, ItemFeed result, XPathContext context, Expression[] arguments) Create a Feed that evaluates a Callable (often but not necessarily a function) -
Method Summary
Methods inherited from class com.saxonica.ee.stream.feed.ItemFeed
append, dynamicError, endSelectedParentNode, getContext, getExpression, getResultFeed, 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, setUnparsedEntity, startContent, startDocument, startElement, startElement, usesTypeAnnotations
Methods inherited from class net.sf.saxon.event.Outputter
getConfiguration, getPipelineConfiguration, getStringReceiver, getSystemId, namespaces, setPipelineConfiguration, setSystemId, spreadStartElement
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 Details
-
CallableFeed
public CallableFeed(Callable function, ItemFeed result, XPathContext context, Expression[] arguments) Create a Feed that evaluates a Callable (often but not necessarily a function)- Parameters:
function
- the function or other Callableresult
- the place to send the results of evaluating this Callablecontext
- dynamic context informationarguments
- the arguments to the Callable. Typically one of these is Consuming. The expression receives its input for the consuming argument via the processItem() call, and it then evaluates the other (non-streamed) arguments by calling iterate() on them.
-
-
Method Details
-
append
Supply an item to the feed- Specified by:
append
in interfaceReceiver
- Specified by:
append
in classItemFeed
- Parameters:
item
- the item being fed- Throws:
XPathException
- to report any failure
-
close
Description copied from class:ItemFeed
Finish evaluating the expression.- Specified by:
close
in interfaceReceiver
- Overrides:
close
in classItemFeed
- Throws:
XPathException
- if a dynamic error occurs
-