Class AsciidocReportWriter

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    class AsciidocReportWriter
    extends ReportWriter
    • Field Detail

      • writer

        private final java.io.BufferedWriter writer
    • Constructor Detail

      • AsciidocReportWriter

        AsciidocReportWriter​(MessageInterface messageInterface,
                             java.io.BufferedWriter writer)
    • Method Detail

      • writeHeader

        public void writeHeader​(java.lang.String title)
                         throws java.io.IOException
        Description copied from class: ReportWriter
        Writes the header for the report.
        Specified by:
        writeHeader in class ReportWriter
        Parameters:
        title - the title of the header
        Throws:
        java.io.IOException - if an I/O error occurs
      • writeDetail

        public void writeDetail​(MessageMethod messageMethod)
                         throws java.io.IOException
        Description copied from class: ReportWriter
        Writes a detail line for the report.
        Specified by:
        writeDetail in class ReportWriter
        Parameters:
        messageMethod - the method to write the details for
        Throws:
        java.io.IOException - if an I/O error occurs
      • writeFooter

        public void writeFooter()
                         throws java.io.IOException
        Description copied from class: ReportWriter
        Writes the footer for the report.
        Specified by:
        writeFooter in class ReportWriter
        Throws:
        java.io.IOException - if an I/O error occurs
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • escape

        private java.lang.CharSequence escape​(java.lang.CharSequence s)