Class XmlReportWriter
- java.lang.Object
-
- org.jboss.logging.processor.apt.report.ReportWriter
-
- org.jboss.logging.processor.apt.report.XmlReportWriter
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
class XmlReportWriter extends ReportWriter
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
NAMESPACE
private javax.xml.stream.XMLStreamWriter
xmlWriter
-
Fields inherited from class org.jboss.logging.processor.apt.report.ReportWriter
DEFAULT_ID, messageIdFormat, messageInterface
-
-
Constructor Summary
Constructors Constructor Description XmlReportWriter(MessageInterface messageInterface, java.io.BufferedWriter writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
(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
-
-
-
-
Field Detail
-
NAMESPACE
private static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
xmlWriter
private final javax.xml.stream.XMLStreamWriter xmlWriter
-
-
Constructor Detail
-
XmlReportWriter
XmlReportWriter(MessageInterface messageInterface, java.io.BufferedWriter writer) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
-
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
-
-