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.
-
OutputStreamIterator()
- Construct myself to print all objects to the standard output stream, System.out.
-
OutputStreamIterator(OutputStream)
- Construct myself to print all objects to the specified PrintStream.
-
OutputStreamIterator(OutputStreamIterator)
- Construct myself to be associated with the same PrintStream as the specified iterator.
-
advance()
- Advance by one.
-
advance(int)
- Advance by a specified amount.
-
clone()
- Return a clone of myself.
-
put(Object)
- Print the object to my OutputStream.
OutputStreamIterator
public OutputStreamIterator()
- Construct myself to print all objects to the standard output stream, System.out.
OutputStreamIterator
public OutputStreamIterator(OutputStream stream)
- Construct myself to print all objects to the specified PrintStream.
- Parameters:
- stream - The PrintStream.
OutputStreamIterator
public OutputStreamIterator(OutputStreamIterator iterator)
- Construct myself to be associated with the same PrintStream as the specified iterator.
put
public void put(Object object)
- Print the object to my OutputStream.
- Parameters:
- object - The object.
advance
public void advance()
- Advance by one. This has no effect for an OutputStreamIterator.
advance
public void advance(int n)
- Advance by a specified amount. This has no effect for a OutputStreamIterator.
- Parameters:
- n - The amount to advance.
clone
public Object clone()
- Return a clone of myself.
- Overrides:
- clone in class Object
All Packages Class Hierarchy This Package Previous Next Index