org.anadix
Interface ReportFormatter

All Known Implementing Classes:
DefaultReportFormatter, SimpleReportFormatter, XHTMLReportFormatter

public interface ReportFormatter

Class used to format results of analysis stored in Report class.

Version:
$Id: $
Author:
tomason

Method Summary
 String format(Report report)
          Most important method that returns String containing formatted results.
 void formatAndStore(Report report, OutputStream stream)
          Formats the Report and stores the results of formatting to given OutputStream
 void formatAndStore(Report report, Writer writer)
          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.
 

Method Detail

format

String format(Report report)
Most important method that returns String containing formatted results. The content of the String depends on implementation of this method, it may be simple text as well as XML, HTML or any other format.

Parameters:
report - - report to create output from
Returns:
formatted Report as a String

formatAndStore

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

Parameters:
report - - report to format
stream - - instance of OutputStream used to store the report

formatAndStore

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

Parameters:
report - - report to format
writer - - instance of Writer used to store the report

getReportFileExtension

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

Returns:
extension of newly created report files or null if no extension is necessary
Since:
0.4.0


Copyright © 2011. All Rights Reserved.