|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.saxonica.stream.feed.ItemFeed com.saxonica.stream.feed.AdjacentTextNodeMergerFeed
public class AdjacentTextNodeMergerFeed
This class is used when a streaming template requests evaluation of a simple content constructor in streaming mode (that is, when it constructs a text, attribute, comment, or PI node based on the contents of the streamed document). It removes empty text nodes arriving on the input, and concatenates adjacent text nodes into a single text node.
Both a Feed and a Watch are needed because a simple content constructor operates on a sequence of nodes without simply atomizing the sequence.
Constructor Summary | |
---|---|
AdjacentTextNodeMergerFeed(Expression expr,
Feed result,
Stack<XPathContext> contextStack)
|
Method Summary | |
---|---|
void |
append(Item item)
Supply an item to the feed |
void |
close()
Signal the end of the sequence of items |
void |
open()
Start evaluating the expression. |
Methods inherited from class com.saxonica.stream.feed.ItemFeed |
---|
getContext, getContextStack, getExpression, getPipelineConfiguration, getResult, setPipelineConfiguration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdjacentTextNodeMergerFeed(Expression expr, Feed result, Stack<XPathContext> contextStack)
Method Detail |
---|
public void open() throws XPathException
ItemFeed
open
in interface Feed
open
in class ItemFeed
XPathException
- if a dynamic error occurspublic void append(Item item) throws XPathException
append
in interface Feed
append
in class ItemFeed
item
- the item being fed
XPathException
- to report any failurepublic void close() throws XPathException
close
in interface Feed
close
in class ItemFeed
XPathException
- to report any failure
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |