com.saxonica.stream.feed
Class CountFeed
java.lang.Object
   com.saxonica.stream.feed.ItemFeed
com.saxonica.stream.feed.ItemFeed
       com.saxonica.stream.feed.CountFeed
com.saxonica.stream.feed.CountFeed
- All Implemented Interfaces: 
- Feed
- public class CountFeed 
- extends ItemFeed
This class is used when counting items (other than nodes delivered by a Watch)
 
| Method Summary | 
|  void | append(Item item)Supply an item to the feed
 | 
|  void | close()Finish evaluating the expression.
 | 
|  void | open()Start evaluating the expression.
 | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
CountFeed
public CountFeed(Expression expr,
                 Feed result,
                 Stack<XPathContext> contextStack)
open
public void open()
          throws XPathException
- Description copied from class: ItemFeed
- Start evaluating the expression. The default implementation does nothing.
 
- 
- Specified by:
- openin interface- Feed
- Overrides:
- openin class- ItemFeed
 
- 
- Throws:
- XPathException- if a dynamic error occurs
 
append
public void append(Item item)
            throws XPathException
- Supply an item to the feed
 
- 
- Specified by:
- appendin interface- Feed
- Specified by:
- appendin class- ItemFeed
 
- 
- Parameters:
- item- the item being fed
- Throws:
- XPathException- to report any failure
 
close
public void close()
           throws XPathException
- Description copied from class: ItemFeed
- Finish evaluating the expression. The default implementation does nothing.
 
- 
- Specified by:
- closein interface- Feed
- Overrides:
- closein class- ItemFeed
 
- 
- Throws:
- XPathException- if a dynamic error occurs
 
Copyright (c) 2004-2011 Saxonica Limited. All rights reserved.