Class AsciidocReportWriter
- java.lang.Object
-
- org.jboss.logging.processor.apt.report.ReportWriter
-
- org.jboss.logging.processor.apt.report.AsciidocReportWriter
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
class AsciidocReportWriter extends ReportWriter
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.BufferedWriterwriter-
Fields inherited from class org.jboss.logging.processor.apt.report.ReportWriter
DEFAULT_ID, messageIdFormat, messageInterface
-
-
Constructor Summary
Constructors Constructor Description AsciidocReportWriter(MessageInterface messageInterface, java.io.BufferedWriter writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()private java.lang.CharSequenceescape(java.lang.CharSequence s)(package private) ReportTypegetReportType()The report type for this writer.voidwriteDetail(MessageMethod messageMethod)Writes a detail line for the report.voidwriteFooter()Writes the footer for the report.voidwriteHeader(java.lang.String title)Writes the header for the report.-
Methods inherited from class org.jboss.logging.processor.apt.report.ReportWriter
getLogLevel, getUrl, of
-
-
-
-
Constructor Detail
-
AsciidocReportWriter
AsciidocReportWriter(MessageInterface messageInterface, java.io.BufferedWriter writer)
-
-
Method Detail
-
writeHeader
public void writeHeader(java.lang.String title) throws java.io.IOExceptionDescription copied from class:ReportWriterWrites the header for the report.- Specified by:
writeHeaderin classReportWriter- 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:ReportWriterWrites a detail line for the report.- Specified by:
writeDetailin classReportWriter- 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.IOExceptionDescription copied from class:ReportWriterWrites the footer for the report.- Specified by:
writeFooterin classReportWriter- Throws:
java.io.IOException- if an I/O error occurs
-
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
getReportType
ReportType getReportType()
Description copied from class:ReportWriterThe report type for this writer.- Specified by:
getReportTypein classReportWriter- Returns:
- the report type
-
escape
private java.lang.CharSequence escape(java.lang.CharSequence s)
-
-