All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.objectspace.jgl.OutputStreamIterator

java.lang.Object
   |
   +----COM.objectspace.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.

See Also:
OutputIterator

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(OutputStream, String)
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.
 o OutputStreamIterator(String)
Construct myself to print all objects to the standard output stream, System.out.

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(String delimiter)
Construct myself to print all objects to the standard output stream, System.out. A delimiter will be printed after each object.

Parameters:
delimiter - The string to print between objects.
 o OutputStreamIterator
  public OutputStreamIterator(OutputStream stream)
Construct myself to print all objects to the specified PrintStream.

Parameters:
stream - The PrintStream.
 o OutputStreamIterator
  public OutputStreamIterator(OutputStream stream,
                              String delimiter)
Construct myself to print all objects to the specified PrintStream. A delimiter will be printed after each object.

Parameters:
stream - The PrintStream.
delimited - The string to print between objects.
 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