com.saxonica.stream.feed
Class SumFeed
java.lang.Object
com.saxonica.stream.feed.ItemFeed
com.saxonica.stream.feed.SumFeed
- All Implemented Interfaces:
- Feed
public class SumFeed
- extends ItemFeed
This class is used when a streaming template requests evaluation of the sum()
of the nodes selected by a path expression, with the streamed input being the
value of the first argument.
Method Summary |
void |
append(Item item)
Supply an item to the feed |
void |
close()
Signal the end of the sequence of items |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SumFeed
public SumFeed(Expression sumExpr,
Feed result,
Stack<XPathContext> contextStack)
append
public void append(Item item)
throws XPathException
- Supply an item to the feed
- Specified by:
append
in interface Feed
- Specified by:
append
in class ItemFeed
- Parameters:
item
- the item being fed
- Throws:
XPathException
- to report any failure
close
public void close()
throws XPathException
- Signal the end of the sequence of items
- Specified by:
close
in interface Feed
- Overrides:
close
in class ItemFeed
- Throws:
XPathException
- to report any failure
Copyright (c) 2004-2010 Saxonica Limited. All rights reserved.