home *** CD-ROM | disk | FTP | other *** search
/ ActiveX Programming Unleashed CD / AXU.iso / jgl_1_1 / jgl_1_1.exe / src / OutputIterator.java < prev    next >
Encoding:
Java Source  |  1996-09-10  |  838 b   |  39 lines

  1. // Copyright(c) 1996 ObjectSpace, Inc.
  2. // Portions Copyright(c) 1995, 1996 Hewlett-Packard Company.
  3.  
  4. package jgl;
  5.  
  6. /**
  7.  * OutputIterator is the interface of all iterators that can write one
  8.  * item at a time in a forward direction.
  9.  * <p>
  10.  * @see jgl.InputIterator
  11.  * @version 1.1
  12.  * @author ObjectSpace, Inc.
  13.  */
  14.  
  15. public interface OutputIterator extends Cloneable
  16.   {
  17.   /**
  18.    * Set the object at my current position to a specified value.
  19.    * @param object The object to be written at my current position.
  20.    */
  21.   public void put( Object object );
  22.  
  23.   /**
  24.    * Advance by one.
  25.    */
  26.   public void advance();
  27.  
  28.   /**
  29.    * Advance by a specified amount.
  30.    * @param n The amount to advance.
  31.    */
  32.   public void advance( int n );
  33.  
  34.   /**
  35.    * Return a clone of myself.
  36.    */
  37.   public Object clone();
  38.   }
  39.