|
Jacson | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.spieleck.app.jacson.report.PrintingReport
Report that prints out everything in the property file format. Also (ab)used as the baseclass of all reports that write to a file.
| Field Summary | |
protected java.util.LinkedList |
begins
|
static java.lang.String |
FILENAME_NODE
|
protected java.io.PrintWriter |
pw
|
| Constructor Summary | |
PrintingReport()
|
|
| Method Summary | |
boolean |
accept(ConfigNode cn)
|
void |
begin(java.lang.String id)
Begin a subsection within report |
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 |
protected java.io.PrintWriter |
getPrintWriter()
|
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)
Either consume the PrintWriter directly |
protected void |
useFilename(ConfigNode config)
|
protected static void |
useFilename(JacsonPrintReport rep,
ConfigNode conf,
java.io.OutputStream defaultOut)
use a Filename but be able to give a default output stream |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String FILENAME_NODE
protected java.io.PrintWriter pw
protected java.util.LinkedList begins
| Constructor Detail |
public PrintingReport()
| Method Detail |
public void init(ConfigNode config)
throws JacsonConfigException
JacsonReportConfigNode can be used to obtain
configuration information of the report from the global
config xml.
init in interface JacsonReportJacsonConfigException
protected void useFilename(ConfigNode config)
throws JacsonConfigException
JacsonConfigException
protected static void useFilename(JacsonPrintReport rep,
ConfigNode conf,
java.io.OutputStream defaultOut)
throws JacsonConfigException
JacsonConfigExceptionpublic boolean accept(ConfigNode cn)
accept in interface ConfigVerify.Acceptorpublic void setOutputStream(java.io.OutputStream os)
JacsonPrintReport
setOutputStream in interface JacsonPrintReportpublic void setPrintWriter(java.io.PrintWriter pw)
JacsonPrintReport
setPrintWriter in interface JacsonPrintReportprotected java.io.PrintWriter getPrintWriter()
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 JacsonReportpublic void end()
JacsonReport
end in interface JacsonReportpublic void finish()
JacsonReport
finish in interface JacsonReportpublic void finish(boolean close)
JacsonReport
finish in interface JacsonReportclose - flag whether to close resources or not.public void registerState(JacsonState state)
JacsonStately
registerState in interface JacsonStatelypublic JacsonState getRegState()
JacsonReport
getRegState in interface JacsonReport
|
Spieleck | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||