org.jacoco.report
Class MultiFormatter

java.lang.Object
  extended by org.jacoco.report.MultiFormatter
All Implemented Interfaces:
IReportFormatter

public class MultiFormatter
extends Object
implements IReportFormatter

A formatter that is composed from multiple other formatters. This can be used to create more than one report format in one run.

Version:
$Revision: $
Author:
Marc R. Hoffmann

Constructor Summary
MultiFormatter()
           
 
Method Summary
 void add(IReportFormatter formatter)
          Adds the given formatter to the processing chain.
 IReportVisitor createReportVisitor(ICoverageNode session)
          Creates a visitor for root of a coverage data tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiFormatter

public MultiFormatter()
Method Detail

add

public void add(IReportFormatter formatter)
Adds the given formatter to the processing chain.

Parameters:
formatter - formatter to add

createReportVisitor

public IReportVisitor createReportVisitor(ICoverageNode session)
                                   throws IOException
Description copied from interface: IReportFormatter
Creates a visitor for root of a coverage data tree.

Specified by:
createReportVisitor in interface IReportFormatter
Parameters:
session - session root node
Returns:
visitor for the root node
Throws:
IOException