Class ReportTask.XMLFormatterElement

java.lang.Object
org.jacoco.ant.ReportTask.FormatterElement
org.jacoco.ant.ReportTask.XMLFormatterElement
Enclosing class:
ReportTask

public class ReportTask.XMLFormatterElement extends ReportTask.FormatterElement
Formatter element for XML reports.
  • Field Details

    • destfile

      private File destfile
    • encoding

      private String encoding
  • Constructor Details

    • XMLFormatterElement

      public XMLFormatterElement()
  • Method Details

    • setDestfile

      public void setDestfile(File destfile)
      Sets the output file for the report.
      Parameters:
      destfile - output file
    • setEncoding

      public void setEncoding(String encoding)
      Sets the output encoding for generated XML file. Default is UTF-8.
      Parameters:
      encoding - output encoding
    • createVisitor

      public IReportVisitor createVisitor() throws IOException
      Specified by:
      createVisitor in class ReportTask.FormatterElement
      Throws:
      IOException