Class jgl.OutputStreamIterator
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jgl.OutputStreamIterator

java.lang.Object
   |
   +----jgl.OutputStreamIterator

public class OutputStreamIterator
extends Object
implements OutputIterator
An OutputStreamIterator is an output iterator that prints objects that are written to it. By default, it writes to the standard output stream System.out.


Constructor Index

 o OutputStreamIterator()
Construct myself to print all objects to the standard output stream, System.out.
 o OutputStreamIterator(OutputStream)
Construct myself to print all objects to the specified PrintStream.
 o OutputStreamIterator(OutputStreamIterator)
Construct myself to be associated with the same PrintStream as the specified iterator.

Method Index

 o advance()
Advance by one.
 o advance(int)
Advance by a specified amount.
 o clone()
Return a clone of myself.
 o put(Object)
Print the object to my OutputStream.

Constructors

 o OutputStreamIterator
  public OutputStreamIterator()
Construct myself to print all objects to the standard output stream, System.out.
 o OutputStreamIterator
  public OutputStreamIterator(OutputStream stream)
Construct myself to print all objects to the specified PrintStream.
Parameters:
stream - The PrintStream.
 o OutputStreamIterator
  public OutputStreamIterator(OutputStreamIterator iterator)
Construct myself to be associated with the same PrintStream as the specified iterator.

Methods

 o put
  public void put(Object object)
Print the object to my OutputStream.
Parameters:
object - The object.
 o advance
  public void advance()
Advance by one. This has no effect for an OutputStreamIterator.
 o advance
  public void advance(int n)
Advance by a specified amount. This has no effect for a OutputStreamIterator.
Parameters:
n - The amount to advance.
 o clone
  public Object clone()
Return a clone of myself.
Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index