Package org.jacoco.report.internal.xml
Class XMLCoverageWriter
java.lang.Object
org.jacoco.report.internal.xml.XMLCoverageWriter
Serializes coverage data as XML fragments.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidwriteBundle(IBundleCoverage bundle, ReportElement element) Writes the structure of a given bundle.static voidwriteCounters(ICoverageNode node, ReportElement parent) Writes all non-zero counters of the given node.
-
Method Details
-
writeBundle
Writes the structure of a given bundle.- Parameters:
bundle- bundle coverage dataelement- container element for the bundle data- Throws:
IOException- if XML can't be written to the underlying output
-
writeCounters
Writes all non-zero counters of the given node.- Parameters:
node- node to retrieve counters fromparent- container for the counter elements- Throws:
IOException- if XML can't be written to the underlying output
-