org.schmant.report
Class OverwritingFileReportFactory

java.lang.Object
  extended by org.schmant.report.FileReportFactory
      extended by org.schmant.report.OverwritingFileReportFactory
All Implemented Interfaces:
ReportFactory

public class OverwritingFileReportFactory
extends FileReportFactory

This class inherits FileReportFactory and overrides the isAppend() method to return false. In other words, previous log files with the same names as the log files created for this ReportFactory:s Report:s will be overwritten.

Since:
0.6
Author:
Karl Gustafsson

Constructor Summary
OverwritingFileReportFactory()
           
 
Method Summary
protected  boolean isAppend()
          Should existing log files be appended? This implementation returns true (a safe default).
 
Methods inherited from class org.schmant.report.FileReportFactory
getLogFileName, getLoggingDirectory, newReport, setReportLineFormatter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OverwritingFileReportFactory

public OverwritingFileReportFactory()
Method Detail

isAppend

protected boolean isAppend()
Description copied from class: FileReportFactory
Should existing log files be appended? This implementation returns true (a safe default). Override to change that behavior.

Overrides:
isAppend in class FileReportFactory
Returns:
false, always.