Class ReportFileWriter

java.lang.Object
com.zetaplugins.zetacore.debug.ReportFileWriter

public final class ReportFileWriter extends Object
ReportFileWriter is responsible for writing a DebugReport to a file.
  • Method Details

    • writeJsonReportToFile

      public static void writeJsonReportToFile(DebugReport report, File file) throws IOException
      Writes the provided DebugReport to a file at the specified file.
      Parameters:
      report - the DebugReport to write
      file - the file where the report will be written
      Throws:
      IOException - if an I/O error occurs while writing to the file
    • writeTextReportToFile

      public static void writeTextReportToFile(DebugReport report, File file) throws IOException
      Writes the provided DebugReport to a text file at the specified file.
      Parameters:
      report - the DebugReport to write
      file - the file where the report will be written
      Throws:
      IOException - if an I/O error occurs while writing to the file