| JGL - The Generic Collection Library for Java |
All Packages Class Hierarchy This Package Previous Next Index
Class com.objectspace.jgl.util.OutputStreamIterator
java.lang.Object
|
+----com.objectspace.jgl.util.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
-
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(OutputStream, String)
- 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.
-
OutputStreamIterator(String)
- Construct myself to print all objects to the standard output stream, System.out.
-
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(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.
OutputStreamIterator
public OutputStreamIterator(OutputStream stream)
- Construct myself to print all objects to the specified PrintStream.
- Parameters:
- stream - The PrintStream.
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.
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