Class TabularReportWriter

java.lang.Object
org.brapi.schematools.analyse.TabularReportWriter

public class TabularReportWriter extends Object
Writes a tabular report to file.
  • Method Details

    • writer

      public static TabularReportWriter writer()
      Creates the default Writer
      Returns:
      the default Writer
    • autoSizeColumns

      public TabularReportWriter autoSizeColumns()
      Auto-sizes all columns
      Returns:
      the writer for method chaining
    • autoFilterColumns

      public TabularReportWriter autoFilterColumns()
      Auto-filter all columns
      Returns:
      the writer for method chaining
    • freezePane

      public TabularReportWriter freezePane()
      Freeze pane all columns
      Returns:
      the writer for method chaining
    • writeToExcel

      public void writeToExcel(List<org.dflib.DataFrame> reports, Path path) throws IOException
      Write the tabular reports to an Excel file
      Parameters:
      reports - the tabular reports to be written to an Excel file
      path - the path of the Excel file.
      Throws:
      IOException - if th Excel file can be written.
    • writeToExcel

      public void writeToExcel(org.dflib.DataFrame report, Path path) throws IOException
      Write the tabular reports to an Excel file
      Parameters:
      report - the tabular report to be written to an Excel file
      path - the path of the Excel file.
      Throws:
      IOException - if th Excel file can be written.