JavaGrinders
Class Stringer

java.lang.Object
  extended by JavaGrinders.Stringer

public class Stringer
extends java.lang.Object

represents the central entity that reports results. All output is directed to this object and with it we can set at a single Capture in what form results are reported.


Constructor Summary
Stringer()
          empty constructor
 
Method Summary
 boolean isConsole()
          returns whether the console is the destination
 void setReportToConsole(boolean console)
          controls whether oputput goes to the console
 void tell(java.lang.String aString)
          interface to console.print()
 void tellln()
          interface to console.println() - empty line
 void tellln(double aDouble)
          interface to console.println()
 void tellln(float aFloat)
          interface to console.println()
 void tellln(int anInt)
          interface to console.println()
 void tellln(long aLong)
          interface to console.println()
 void tellln(java.lang.String aString)
          interface to console.println()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stringer

public Stringer()
empty constructor

Method Detail

tell

public void tell(java.lang.String aString)
interface to console.print()

Parameters:
aString - the string to report

tellln

public void tellln(java.lang.String aString)
interface to console.println()

Parameters:
aString - the string to report

tellln

public void tellln(long aLong)
interface to console.println()

Parameters:
aLong - the long to report

tellln

public void tellln(int anInt)
interface to console.println()

Parameters:
anInt - the int to report

tellln

public void tellln(double aDouble)
interface to console.println()

Parameters:
aDouble - the double to report

tellln

public void tellln(float aFloat)
interface to console.println()

Parameters:
aFloat - the float to report

tellln

public void tellln()
interface to console.println() - empty line


setReportToConsole

public void setReportToConsole(boolean console)
controls whether oputput goes to the console

Parameters:
console - specifies whether to use the console

isConsole

public boolean isConsole()
returns whether the console is the destination