|
Jacson | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.spieleck.app.jacson.report.MultiReport
An report which dispatches a message to all contained
(possible multiple) reports.
This class might not be directly usable in applications, but
is an important helper class anyway.
Field Summary | |
protected java.util.List |
reports
|
Constructor Summary | |
MultiReport()
|
Method Summary | |
void |
addReport(JacsonReport report)
Add another (completely initialized) report to the list |
void |
begin(java.lang.String id)
Begin a subsection within report |
void |
clear()
|
int |
countReports()
Count the registered Reports |
void |
end()
Close a subsection within a report |
void |
finish()
Finish and close underlying resources |
void |
finish(boolean close)
Finish and optionally close the underlying resources |
JacsonState |
getRegState()
returns the set JacsonState |
void |
init(ConfigNode config)
Initialize the report. |
void |
registerState(JacsonState state)
Give the class access to an appropriate state. |
void |
report(java.lang.String localName,
java.lang.String value)
Report a single name value pair within a report |
void |
setOutputStream(java.io.OutputStream os)
Or consume an OutputStream directly |
void |
setPrintWriter(java.io.PrintWriter pw)
XXX Sometimes (most of the time) mangling different reports into one file makes no sense and might cause unpredictable behaviour. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.List reports
Constructor Detail |
public MultiReport()
Method Detail |
public void clear()
public void addReport(JacsonReport report)
public int countReports()
public void init(ConfigNode config) throws JacsonConfigException
JacsonReport
ConfigNode
can be used to obtain
configuration information of the report from the global
config xml.
init
in interface JacsonReport
JacsonConfigException
public void registerState(JacsonState state)
JacsonStately
registerState
in interface JacsonStately
public JacsonState getRegState()
JacsonReport
getRegState
in interface JacsonReport
public void finish(boolean close)
JacsonReport
finish
in interface JacsonReport
close
- flag whether to close resources or not.public void finish()
JacsonReport
finish
in interface JacsonReport
public void begin(java.lang.String id)
JacsonReport
begin
in interface JacsonReport
public void report(java.lang.String localName, java.lang.String value)
JacsonReport
report
in interface JacsonReport
public void end()
JacsonReport
end
in interface JacsonReport
public void setPrintWriter(java.io.PrintWriter pw) throws JacsonConfigException
setPrintWriter
in interface JacsonPrintReport
JacsonConfigException
public void setOutputStream(java.io.OutputStream os) throws JacsonConfigException
JacsonPrintReport
setOutputStream
in interface JacsonPrintReport
JacsonConfigException
|
Spieleck | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |