public class ReportGenerator extends Object
Constructor and Description |
---|
ReportGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
generate(OutputStream output,
String designName,
String format,
Map<String,Object> params)
Generate a report for the given report design.
|
void |
generate(OutputStream output,
String designName,
String format,
Map<String,Object> params,
Locale locale)
Generate a report for the given report design.
|
File |
generate(String designName,
String format,
Map<String,Object> params)
Generate a report to a temporary file and return path to the generated
file.
|
File |
generate(String designName,
String format,
Map<String,Object> params,
Locale locale)
Generate a report to a temporary file and return path to the generated
file.
|
public void generate(OutputStream output, String designName, String format, Map<String,Object> params) throws IOException, org.eclipse.birt.core.exception.BirtException
output
- the report output streamdesignName
- report designformat
- output format (e.g. pdf, html etc)params
- report parametersIOException
- if an I/O exception occursorg.eclipse.birt.core.exception.BirtException
- if rendering failspublic void generate(OutputStream output, String designName, String format, Map<String,Object> params, Locale locale) throws IOException, org.eclipse.birt.core.exception.BirtException
output
- the report output streamdesignName
- report designformat
- output format (e.g. pdf, html etc)params
- report parameterslocale
- report output localeIOException
- if an I/O exception occursorg.eclipse.birt.core.exception.BirtException
- if rendering failspublic File generate(String designName, String format, Map<String,Object> params) throws IOException, org.eclipse.birt.core.exception.BirtException
designName
- report design nameformat
- output formatparams
- report parametersPath
to the generated fileIOException
- if an I/O exception occursorg.eclipse.birt.core.exception.BirtException
- if rendering failspublic File generate(String designName, String format, Map<String,Object> params, Locale locale) throws IOException, org.eclipse.birt.core.exception.BirtException
designName
- report design nameformat
- output formatparams
- report parameterslocale
- report output languagePath
to the generated fileIOException
- if an I/O exception occursorg.eclipse.birt.core.exception.BirtException
- if rendering fails