com.mungoknotwise.sqlcli
Class BasicPrintStreamed

java.lang.Object
  |
  +--com.mungoknotwise.sqlcli.BasicPrintStreamed
All Implemented Interfaces:
PrintStreamed
Direct Known Subclasses:
PrintStreamedDescribeResultSetExtractor, PrintStreamedExceptionHandler, PrintStreamedResultSetExtractor, PrintStreamedShowTablesResultSetExtractor, PrintStreamedUpdateRowcountHandler

public class BasicPrintStreamed
extends java.lang.Object
implements PrintStreamed

A basic implementation of the PrintStreamed interface.

Version:
$Id: BasicPrintStreamed.java,v 1.1.1.1 2004/07/28 01:12:38 mungoknotwise Exp $
Author:
Steven Caswell

Constructor Summary
BasicPrintStreamed()
          Constructs a new instance of AbstractPrintStreamed.
 
Method Summary
 void addPrintStream(java.io.PrintStream printStream)
          Adds the specified print stream to this object's print streams.
protected  void print(java.lang.String line)
          Prints the specified line to this object's print streams.
protected  void println(java.lang.String line)
          Prints the specified line to this object's print streams.
 void removePrintStream(java.io.PrintStream printStream)
          Removes the specified print stream to this object's print streams.
protected  java.util.Iterator streamIterator()
          Returns an iterator of this object's print streams.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicPrintStreamed

public BasicPrintStreamed()
Constructs a new instance of AbstractPrintStreamed.

Method Detail

addPrintStream

public void addPrintStream(java.io.PrintStream printStream)
Adds the specified print stream to this object's print streams.

Specified by:
addPrintStream in interface PrintStreamed
Parameters:
printStream - the print stream to be added

removePrintStream

public void removePrintStream(java.io.PrintStream printStream)
Removes the specified print stream to this object's print streams.

Specified by:
removePrintStream in interface PrintStreamed
Parameters:
printStream - the print stream to be added

print

protected void print(java.lang.String line)
Prints the specified line to this object's print streams.

Parameters:
line - the line to print

println

protected void println(java.lang.String line)
Prints the specified line to this object's print streams.

Parameters:
line - the line to print

streamIterator

protected java.util.Iterator streamIterator()
Returns an iterator of this object's print streams.

Returns:
the iterator


Copyright © 2004 Steven Caswell. All Rights Reserved.