ghm.follow.io
Class PrintStreamDestination

java.lang.Object
  extended by ghm.follow.io.PrintStreamDestination
All Implemented Interfaces:
OutputDestination

public class PrintStreamDestination
extends java.lang.Object
implements OutputDestination

Implementation of OutputDestination which prints Strings to a PrintStream.

Author:
Greg Merrill
See Also:
OutputDestination, PrintStream

Field Summary
protected  java.io.PrintStream printStream
           
 
Constructor Summary
PrintStreamDestination(java.io.PrintStream printStream)
           
 
Method Summary
 void clear()
          Clear all previous text.
 java.io.PrintStream getPrintStream()
           
 void print(java.lang.String s)
          Print the supplied String.
 void setPrintStream(java.io.PrintStream printStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

printStream

protected java.io.PrintStream printStream
Constructor Detail

PrintStreamDestination

public PrintStreamDestination(java.io.PrintStream printStream)
Method Detail

getPrintStream

public java.io.PrintStream getPrintStream()

setPrintStream

public void setPrintStream(java.io.PrintStream printStream)

print

public void print(java.lang.String s)
Description copied from interface: OutputDestination
Print the supplied String.

Specified by:
print in interface OutputDestination
Parameters:
s - String to be printed

clear

public void clear()
Description copied from interface: OutputDestination
Clear all previous text.

Specified by:
clear in interface OutputDestination


Copyright © 2008. All Rights Reserved.