net.sf.jbenchmark.util
Class FilePublisher

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

public class FilePublisher
extends AbstractStatisticPublisher

Produces the Twiki output to a file. TODO: Since these are dynamically added, work out a way for this to pick up the log file name.

Version:
$Id: FilePublisher.java,v 1.2 2004/07/02 06:03:25 twpatkua Exp $
Author:
Patrick Kua

Constructor Summary
FilePublisher()
          Default constructor
 
Method Summary
 java.io.PrintWriter getPrintWriter()
          Return the print writer wrapped around the log file.
 boolean printHeader()
          Print the header if the file doesn't exist, or don't if it is already there.
 void setLogFile(java.io.File path)
          Set the output to the file.
 
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

FilePublisher

public FilePublisher()
Default constructor

Method Detail

setLogFile

public void setLogFile(java.io.File path)
Set the output to the file.


getPrintWriter

public java.io.PrintWriter getPrintWriter()
Return the print writer wrapped around the log file.

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

printHeader

public boolean printHeader()
Print the header if the file doesn't exist, or don't if it is already there.

Specified by:
printHeader in class AbstractStatisticPublisher