|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.opencms.report.A_CmsReport
org.opencms.report.CmsStringBufferReport
Report class used to write the output of a report to a StringBuffer.
It stores everything and generates no output.
After the report is finished, you can access to result of the
report using the toString() method.
| Field Summary |
| Fields inherited from interface org.opencms.report.I_CmsReport |
BUNDLE_NAME, FORMAT_DEFAULT, FORMAT_ERROR, FORMAT_HEADLINE, FORMAT_NOTE, FORMAT_OK, FORMAT_WARNING, REPORT_TYPE_EXTENDED, REPORT_TYPE_SIMPLE |
| Constructor Summary | |
CmsStringBufferReport(Locale locale)
Creates a new string buffer report. |
|
CmsStringBufferReport(String bundleName,
Locale locale)
Constructs a new string buffer report using the specified locale and resource bundle for the output language. |
|
| Method Summary | |
String |
getReportUpdate()
Updates this report, this processes all new output added since the last call to this method. |
void |
print(String value,
int format)
Prints a String to the report, using the indicated formatting. |
void |
println()
Adds a line break to the report. |
void |
println(Throwable t)
Adds an Exception to the report, ensuring that the Exception content is processed to generate a valid output esp. |
String |
toString()
|
| Methods inherited from class org.opencms.report.A_CmsReport |
addBundle, addError, formatRuntime, getErrors, getLocale, getRuntime, hasError, init, key, print, print, print, println, println, println, println, printMessageWithParam, printMessageWithParam, resetRuntime |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CmsStringBufferReport(Locale locale)
locale - the locale to use for the report output messages
public CmsStringBufferReport(String bundleName,
Locale locale)
locale - the locale to use for the report output messagesbundleName - the name of the resource bundle with localized strings| Method Detail |
public String getReportUpdate()
I_CmsReportThis is only required in case the output is written to a HTML page, if the shell output is used, this will just return an empty String.
I_CmsReport.getReportUpdate()
public void print(String value,
int format)
A_CmsReport
Use the contants starting with FORMAT from this interface
to indicate which formatting to use.
print in class A_CmsReportvalue - the message container to addformat - the formatting to use for the outputA_CmsReport.print(java.lang.String, int)public void println()
I_CmsReport
I_CmsReport.println()public void println(Throwable t)
I_CmsReportThe exception will be stored and the output will later be processed in a special way.
t - the exception to addI_CmsReport.println(java.lang.Throwable)public String toString()
Object.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||