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.BufferedWriter
writer
-
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 void
close()
private java.lang.CharSequence
escape(java.lang.CharSequence s)
(package private) ReportType
getReportType()
The report type for this writer.void
writeDetail(MessageMethod messageMethod)
Writes a detail line for the report.void
writeFooter()
Writes the footer for the report.void
writeHeader(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.IOException
Description copied from class:ReportWriter
Writes the header for the report.- Specified by:
writeHeader
in 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:ReportWriter
Writes a detail line for the report.- Specified by:
writeDetail
in 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.IOException
Description copied from class:ReportWriter
Writes the footer for the report.- Specified by:
writeFooter
in 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:ReportWriter
The report type for this writer.- Specified by:
getReportType
in classReportWriter
- Returns:
- the report type
-
escape
private java.lang.CharSequence escape(java.lang.CharSequence s)
-
-