Interface SystemReportFormatter

    • Method Detail

      • getName

        String getName()
        A short name for this format for use by UIs when presenting an option of which formatter to choose.
        Returns:
        the format name (eg, "text", "xml", etc.)
      • getDescription

        String getDescription()
        A short description of the format.
        Returns:
        the description
      • getContentType

        String getContentType()
        The Content-Type that this formatter outputs. This can be null if the formatter does not produce a file (like the FtpSystemReportFormatter).
        Returns:
        the content-type the formatter writes.
      • getExtension

        String getExtension()
        The default extension to use when creating files if no output is specified.
        Returns:
        the extension
      • needsOutputStream

        boolean needsOutputStream()
        Whether or not this formatter needs to be given an output stream.
      • setOutput

        void setOutput​(String output)
        The output string as passed on the command-line.
      • setOutputStream

        void setOutputStream​(OutputStream stream)
        The output stream to use when writing data.
        Parameters:
        stream -
      • write

        void write​(SystemReportPlugin plugin)
        Write the data from the specified SystemReportPlugin.
        Parameters:
        plugin - the system report plugin which contains the data to write
      • begin

        void begin()
        Indicates that report output will begin.
      • end

        void end()
        Indicates that report output will end.
      • canStdout

        boolean canStdout()
        Whether this formatter should be allowed to write to STDOUT.