Class ReportTask.HTMLFormatterElement

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

public class ReportTask.HTMLFormatterElement extends ReportTask.FormatterElement
Formatter element for HTML reports.
  • Field Details

    • destdir

      private File destdir
    • destfile

      private File destfile
    • encoding

      private String encoding
    • locale

      private Locale locale
  • Constructor Details

    • HTMLFormatterElement

      public HTMLFormatterElement()
  • Method Details

    • setDestdir

      public void setDestdir(File destdir)
      Sets the output directory for the report.
      Parameters:
      destdir - output directory
    • setDestfile

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

      public void setFooter(String text)
      Sets an optional footer text that will be displayed on every report page.
      Parameters:
      text - footer text
    • setEncoding

      public void setEncoding(String encoding)
      Sets the output encoding for generated HTML files. Default is UTF-8.
      Parameters:
      encoding - output encoding
    • setLocale

      public void setLocale(String locale)
      Sets the locale for generated text output. By default the platform locale is used.
      Parameters:
      locale - text locale
    • createVisitor

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