org.jacoco.report.xml
Class XMLFormatter

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

public class XMLFormatter
extends Object
implements IReportFormatter

Report formatter that creates a single XML file for a coverage session

Version:
$Revision: $
Author:
Brock Janiczak

Constructor Summary
XMLFormatter()
           
 
Method Summary
 IReportVisitor createReportVisitor(ICoverageNode session)
          Creates a visitor for root of a coverage data tree.
 void setOutputEncoding(String outputEncoding)
          Sets the encoding used for generated XML document.
 void setReportOutput(ISingleReportOutput output)
          Sets the report output callback for this report formatter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLFormatter

public XMLFormatter()
Method Detail

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

setReportOutput

public void setReportOutput(ISingleReportOutput output)
Sets the report output callback for this report formatter. This is a mandatory property.

Parameters:
output - report output

setOutputEncoding

public void setOutputEncoding(String outputEncoding)
Sets the encoding used for generated XML document. Default is UTF-8.

Parameters:
outputEncoding - XML output encoding