|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
O
- the type of expected output instance.
public interface ReportGenerator<O>
Defines the properties of a report generator.
Field Summary | |
---|---|
static String |
DEFAULT_ENCODING The default encoding to use if none is explicitly set, but the reporter demands one. |
Method Summary | |
---|---|
String |
getEncoding() Returns the encoding to use. |
O |
getOutput() Returns the output instance currently set. |
void |
setEncoding(String encoding) Sets the encoding to use by the reporter. |
void |
setOutput(O output) Sets the output the reporter will use to generate the report. |
void |
writeReport(ProjectConfiguration<O> config, StoredExceptionCodesReport report) Writes the report with the given information. |
Field Detail |
---|
static final String DEFAULT_ENCODING
The value of this constant is "UTF-8".
"UTF-8"
Method Detail |
---|
void writeReport(ProjectConfiguration<O> config, StoredExceptionCodesReport report) throws ReportException
config
- the project configuration to control the report generation.
report
- the information to write.
ReportException
- on any problem generating the report.
O getOutput()
null
if still not set.
void setOutput(O output) throws NullPointerException, IllegalArgumentException
The instance is report specific and may be a Writer
or a StringBuffer
.
output
- the output instance.
NullPointerException
- if the
output
is
null
.
IllegalArgumentException
- if the implementation does not know how to handle the instance.
String getEncoding()
default encoding
is used.
void setEncoding(String encoding)
The allowed values are platform dependent and are defined by the java.io
package.
encoding
- the encoding to use by the reporter.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |