01: package net.sf.saxon.om;
02:
03: import net.sf.saxon.trans.XPathException;
04:
05: /**
06: * A ClosingAction is an action that can be performed by a {@link ClosingIterator} when the end of a
07: * sequence is reached
08: */
09: public interface ClosingAction {
10:
11: /**
12: * Notify the end of the sequence reached by the base iterator
13: * @param base the iteration that has come to the end of its natural life
14: * @param count the number of items that have been read
15: */
16:
17: public void close(SequenceIterator base, int count)
18: throws XPathException;
19: }
20:
21: //
22: // The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
23: // you may not use this file except in compliance with the License. You may obtain a copy of the
24: // License at http://www.mozilla.org/MPL/
25: //
26: // Software distributed under the License is distributed on an "AS IS" basis,
27: // WITHOUT WARRANTY OF ANY KIND, either express or implied.
28: // See the License for the specific language governing rights and limitations under the License.
29: //
30: // The Original Code is: all this file.
31: //
32: // The Initial Developer of the Original Code is Michael H. Kay
33: //
34: // Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
35: //
36: // Contributor(s): none.
37: //
|