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 voidwriteBundle(IBundleCoverage bundle, ReportElement element) Writes the structure of a given bundle.private static voidwriteClass(IClassCoverage c, ReportElement parent) static voidwriteCounters(ICoverageNode node, ReportElement parent) Writes all non-zero counters of the given node.private static voidwriteLines(ISourceNode source, ReportElement parent) private static voidwriteMethod(IMethodCoverage m, ReportElement parent) private static voidwritePackage(IPackageCoverage p, ReportElement parent) private static voidwriteSourceFile(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
-