Package org.jacoco.report.xml
Class XMLFormatter
- java.lang.Object
-
- org.jacoco.report.xml.XMLFormatter
-
public class XMLFormatter extends java.lang.Object
Report formatter that creates a single XML file for a coverage session
-
-
Constructor Summary
Constructors Constructor Description XMLFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IReportVisitor
createVisitor(java.io.OutputStream output)
Creates a new visitor to write a report to the given stream.void
setOutputEncoding(java.lang.String outputEncoding)
Sets the encoding used for generated XML document.
-
-
-
Method Detail
-
setOutputEncoding
public void setOutputEncoding(java.lang.String outputEncoding)
Sets the encoding used for generated XML document. Default is UTF-8.- Parameters:
outputEncoding
- XML output encoding
-
createVisitor
public IReportVisitor createVisitor(java.io.OutputStream output) throws java.io.IOException
Creates a new visitor to write a report to the given stream.- Parameters:
output
- output stream to write the report to- Returns:
- visitor to emit the report data to
- Throws:
java.io.IOException
- in case of problems with the output stream
-
-