Interface CPDReportRenderer

All Known Implementing Classes:
CSVRenderer, CSVWithLinecountPerFileRenderer, MarkdownRenderer, SimpleRenderer, VSRenderer, XMLOldRenderer, XMLRenderer

public interface CPDReportRenderer
Render a CPDReport to a file.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    render(CPDReport report, Writer writer)
    Write out the contents of the report to the given writer.
    default String
    Call the other render method on a StringWriter.
  • Method Details

    • render

      void render(CPDReport report, Writer writer) throws IOException
      Write out the contents of the report to the given writer.
      Parameters:
      report - The report to write
      writer - A writer for the report file
      Throws:
      IOException - If the writer throws
    • renderToString

      default String renderToString(CPDReport report)
      Call the other render method on a StringWriter. IO exceptions are rethrown as runtime exceptions.