org.jacoco.report.xml
Class XMLReportFile
java.lang.Object
org.jacoco.report.xml.XMLElement
org.jacoco.report.xml.XMLDocument
org.jacoco.report.xml.XMLReportFile
- All Implemented Interfaces:
- IReportVisitor
public class XMLReportFile
- extends XMLDocument
- implements IReportVisitor
Report visitor that will generate an XML report of the coverage data
- Version:
- $Revision: $
- Author:
- Brock Janiczak
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLReportFile
public XMLReportFile(String encoding,
OutputStream output)
throws IOException
- Creates a new Report file
- Parameters:
output
- Report outputencoding
- Encoding of the XML file
- Throws:
IOException
- IO Error creating report file
visitChild
public IReportVisitor visitChild(ICoverageNode node)
throws IOException
- Description copied from interface:
IReportVisitor
- Called for every direct child.
- Specified by:
visitChild
in interface IReportVisitor
- Parameters:
node
- Node for the child in the implementation class specific to
this type. The counters are may yet be populated.
- Returns:
- visitor instance for processing the child node
- Throws:
IOException
- in case of IO problems with the report writer
visitEnd
public void visitEnd(ISourceFileLocator sourceFileLocator)
throws IOException
- Description copied from interface:
IReportVisitor
- Called at the very end, when all child node have been processed and the
counters for this node are properly populated.
- Specified by:
visitEnd
in interface IReportVisitor
- Parameters:
sourceFileLocator
- source file locator valid for this node
- Throws:
IOException
- in case of IO problems with the report writer