Package org.jacoco.report.internal.xml
Class XMLCoverageWriter
java.lang.Object
org.jacoco.report.internal.xml.XMLCoverageWriter
Serializes coverage data as XML fragments.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
writeBundle
(IBundleCoverage bundle, ReportElement element) Writes the structure of a given bundle.private static void
writeClass
(IClassCoverage c, ReportElement parent) static void
writeCounters
(ICoverageNode node, ReportElement parent) Writes all non-zero counters of the given node.private static void
writeLines
(ISourceNode source, ReportElement parent) private static void
writeMethod
(IMethodCoverage m, ReportElement parent) private static void
writePackage
(IPackageCoverage p, ReportElement parent) private static void
writeSourceFile
(ISourceFileCoverage s, ReportElement parent)
-
Constructor Details
-
XMLCoverageWriter
private XMLCoverageWriter()
-
-
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
-
writePackage
- Throws:
IOException
-
writeClass
- Throws:
IOException
-
writeMethod
- Throws:
IOException
-
writeSourceFile
- Throws:
IOException
-
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
-
writeLines
- Throws:
IOException
-