net.sf.jbenchmark.util
Class ConsolePublisher

java.lang.Object
  extended bynet.sf.jbenchmark.util.AbstractStatisticPublisher
      extended bynet.sf.jbenchmark.util.ConsolePublisher
All Implemented Interfaces:
StatisticPublisher

public class ConsolePublisher
extends AbstractStatisticPublisher

Publish results to the console. Note that there is ever only one of these objects and only the first time publish is called will the headings get printed.

Version:
$Id: ConsolePublisher.java,v 1.1 2004/07/01 07:11:49 twpatkua Exp $
Author:
Patrick Kua

Constructor Summary
ConsolePublisher()
          Make this public constructor
 
Method Summary
 java.io.PrintWriter getPrintWriter()
          Wrap System.out as the printer writer.
 boolean printHeader()
          Print the header if this was the first time ever called for the singleton class.
 
Methods inherited from class net.sf.jbenchmark.util.AbstractStatisticPublisher
getFormatter, publish, setFormatter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsolePublisher

public ConsolePublisher()
Make this public constructor

Method Detail

getPrintWriter

public java.io.PrintWriter getPrintWriter()
Wrap System.out as the printer writer.

Specified by:
getPrintWriter in interface StatisticPublisher
Specified by:
getPrintWriter in class AbstractStatisticPublisher

printHeader

public boolean printHeader()
Print the header if this was the first time ever called for the singleton class.

Specified by:
printHeader in class AbstractStatisticPublisher