home *** CD-ROM | disk | FTP | other *** search
Java Source | 1996-09-10 | 838 b | 39 lines |
- // Copyright(c) 1996 ObjectSpace, Inc.
- // Portions Copyright(c) 1995, 1996 Hewlett-Packard Company.
-
- package jgl;
-
- /**
- * OutputIterator is the interface of all iterators that can write one
- * item at a time in a forward direction.
- * <p>
- * @see jgl.InputIterator
- * @version 1.1
- * @author ObjectSpace, Inc.
- */
-
- public interface OutputIterator extends Cloneable
- {
- /**
- * Set the object at my current position to a specified value.
- * @param object The object to be written at my current position.
- */
- public void put( Object object );
-
- /**
- * Advance by one.
- */
- public void advance();
-
- /**
- * Advance by a specified amount.
- * @param n The amount to advance.
- */
- public void advance( int n );
-
- /**
- * Return a clone of myself.
- */
- public Object clone();
- }
-