|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.saxonica.stream.feed.EventFeed
public abstract class EventFeed
An EventFeed evaluates an expression in "decomposed push" mode. Its streaming input is supplied via a sequence of calls that notify individual events in the input sequence, and its output is (in most cases) delivered via a sequence of calls to the receiver representing the parent expression. The exception is the FeedToReceiver class which appends the supplied items to a Receiver.
Constructor Summary | |
---|---|
EventFeed(Expression exp,
Feed result,
Stack<XPathContext> contextStack)
|
Method Summary | |
---|---|
void |
append(Item item)
Append an item (node or atomic value) to the output |
void |
close()
Finish evaluating the expression. |
XPathContext |
getContext()
Get the dynamic evaluation context |
Stack<XPathContext> |
getContextStack()
Get the stack of XPathContext objects |
Expression |
getExpression()
Get the expression being evaluated by this EventFeed |
PipelineConfiguration |
getPipelineConfiguration()
Get the pipeline configuration |
Feed |
getResult()
Get the parent expression feed |
void |
open()
Start evaluating the expression. |
void |
setPipelineConfiguration(PipelineConfiguration pipe)
Set the pipeline configuration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventFeed(Expression exp, Feed result, Stack<XPathContext> contextStack)
Method Detail |
---|
public void setPipelineConfiguration(PipelineConfiguration pipe)
pipe
- the pipeline configurationpublic PipelineConfiguration getPipelineConfiguration()
getPipelineConfiguration
in interface Feed
public Feed getResult()
public Expression getExpression()
public XPathContext getContext()
public Stack<XPathContext> getContextStack()
public void open() throws XPathException
open
in interface Feed
XPathException
- if a dynamic error occurspublic void append(Item item) throws XPathException
append
in interface Feed
item
- the item to be appended
XPathException
- to report any failurepublic void close() throws XPathException
close
in interface Feed
XPathException
- if a dynamic error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |