org.anadix.impl
Class DefaultReportFormatter

java.lang.Object
  extended by org.anadix.impl.DefaultReportFormatter
All Implemented Interfaces:
ReportFormatter
Direct Known Subclasses:
SimpleReportFormatter, XHTMLReportFormatter

public abstract class DefaultReportFormatter
extends Object
implements ReportFormatter

Abstract class for ReportFormatter

Version:
$Id: $
Author:
tomason

Constructor Summary
DefaultReportFormatter()
           
 
Method Summary
 void formatAndStore(Report report, OutputStream os)
          Formats the Report and stores the results of formatting to given OutputStream
 void formatAndStore(Report report, Writer w)
          Formats the Report and stores the results of formatting to given Writer
 String getReportFileExtension()
          Gets the extension that should be used for report files when storing formatted reports.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.anadix.ReportFormatter
format
 

Constructor Detail

DefaultReportFormatter

public DefaultReportFormatter()
Method Detail

formatAndStore

public void formatAndStore(Report report,
                           OutputStream os)
Formats the Report and stores the results of formatting to given OutputStream

Specified by:
formatAndStore in interface ReportFormatter
Parameters:
report - - report to format
os - - instance of OutputStream used to store the report

formatAndStore

public void formatAndStore(Report report,
                           Writer w)
Formats the Report and stores the results of formatting to given Writer

Specified by:
formatAndStore in interface ReportFormatter
Parameters:
report - - report to format
w - - instance of Writer used to store the report

getReportFileExtension

public String getReportFileExtension()
Gets the extension that should be used for report files when storing formatted reports.

Specified by:
getReportFileExtension in interface ReportFormatter
Returns:
extension of newly created report files or null if no extension is necessary


Copyright © 2011. All Rights Reserved.