|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jrefinery.report.targets.support.ReportProcessorUtil
Library functions to save a report into the different output targets. The functions here are provided to cover the common use cases, they are not intended to be configurable in any way.
Constructor Summary | |
ReportProcessorUtil()
|
Method Summary | |
static void |
createCSV(JFreeReport report,
java.lang.String filename)
Saves a report to CSV format. |
static void |
createDirectoryHTML(JFreeReport report,
java.lang.String filename)
Saves a report to HTML. |
static boolean |
createPDF(JFreeReport report,
java.lang.String fileName)
Saves a report to PDF format. |
static void |
createPlainText(JFreeReport report,
java.lang.String filename)
Saves a report to plain text format. |
static void |
createRTF(JFreeReport report,
java.lang.String filename)
Saves a report to rich-text format (RTF). |
static void |
createStreamHTML(JFreeReport report,
java.lang.String filename)
Saves a report into a single HTML format. |
static void |
createXLS(JFreeReport report,
java.lang.String filename)
Saves a report to Excel format. |
static void |
createZIPHTML(JFreeReport report,
java.lang.String filename)
Saves a report in a ZIP file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReportProcessorUtil()
Method Detail |
public static void createStreamHTML(JFreeReport report, java.lang.String filename) throws java.io.IOException, FunctionInitializeException, ReportProcessingException
report
- the report.filename
- target file name.
ReportProcessingException
- if the report processing failed.
FunctionInitializeException
- if the initialisation of the report processor failed.
java.io.IOException
- if there was an IOerror while processing the report.public static boolean createPDF(JFreeReport report, java.lang.String fileName)
report
- the report.fileName
- target file name.
public static void createPlainText(JFreeReport report, java.lang.String filename) throws java.io.IOException, ReportProcessingException, FunctionInitializeException, OutputTargetException
report
- the report.filename
- target file name.
ReportProcessingException
- if the report processing failed.
FunctionInitializeException
- if the initialisation of the report processor failed.
java.io.IOException
- if there was an IOerror while processing the report.
OutputTargetException
- if there is a problem with the output target.public static void createRTF(JFreeReport report, java.lang.String filename) throws java.io.IOException, ReportProcessingException, FunctionInitializeException
report
- the report.filename
- target file name.
ReportProcessingException
- if the report processing failed.
FunctionInitializeException
- if the initialisation of the report processor failed.
java.io.IOException
- if there was an IOerror while processing the report.public static void createCSV(JFreeReport report, java.lang.String filename) throws ReportProcessingException, FunctionInitializeException, java.io.IOException
report
- the report.filename
- target file name.
ReportProcessingException
- if the report processing failed.
FunctionInitializeException
- if the initialisation of the report processor failed.
java.io.IOException
- if there was an IOerror while processing the report.public static void createXLS(JFreeReport report, java.lang.String filename) throws java.io.IOException, FunctionInitializeException, ReportProcessingException
report
- the report.filename
- target file name.
ReportProcessingException
- if the report processing failed.
FunctionInitializeException
- if the initialisation of the report processor failed.
java.io.IOException
- if there was an IOerror while processing the report.public static void createDirectoryHTML(JFreeReport report, java.lang.String filename) throws java.io.IOException, ReportProcessingException, FunctionInitializeException
report
- the report.filename
- target file name.
ReportProcessingException
- if the report processing failed.
FunctionInitializeException
- if the initialisation of the report processor failed.
java.io.IOException
- if there was an IOerror while processing the report.public static void createZIPHTML(JFreeReport report, java.lang.String filename) throws java.io.IOException, ReportProcessingException, FunctionInitializeException
report
- the report.filename
- target file name.
ReportProcessingException
- if the report processing failed.
FunctionInitializeException
- if the initialisation of the report processor failed.
java.io.IOException
- if there was an IOerror while processing the report.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |