Package org.jacoco.report.xml
Class XMLFormatter
java.lang.Object
org.jacoco.report.xml.XMLFormatter
Report formatter that creates a single XML file for a coverage session
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateVisitor
(OutputStream output) Creates a new visitor to write a report to the given stream.void
setOutputEncoding
(String outputEncoding) Sets the encoding used for generated XML document.
-
Field Details
-
outputEncoding
-
-
Constructor Details
-
XMLFormatter
public XMLFormatter()
-
-
Method Details
-
setOutputEncoding
Sets the encoding used for generated XML document. Default is UTF-8.- Parameters:
outputEncoding
- XML output encoding
-
createVisitor
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:
IOException
- in case of problems with the output stream
-