|
jACOB 2.7 API Documentation. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.tif.jacob.report.birt.BirtReport
public class BirtReport
Class to create PDF or HTML reports out of BIRT report definitions.
Note: Data sources within BIRT report definitions, which match to jACOB SQL data sources, are adapted (i.e. changed) in such a way that the already given jACOB data source configuration is used. By this way BIRT reports become "environment/database" independant.
| Field Summary | |
|---|---|
static java.lang.String |
RCS_ID
The internal revision control system id. |
static java.lang.String |
RCS_REV
The internal revision control system id in short form. |
| Constructor Summary | |
|---|---|
BirtReport(byte[] rptDefinition)
Creates a BIRT report. |
|
BirtReport(DataDocumentValue rptDefinition)
Creates a BIRT report. |
|
BirtReport(java.io.InputStream rptDefinitionStream)
Creates a BIRT report. |
|
| Method Summary | |
|---|---|
byte[] |
createHTML()
Creates a HTML document as byte array from the BIRT report. |
void |
createHTML(java.io.OutputStream out)
Creates a HTML document from the BIRT report and writes it to the given output stream. |
DataDocumentValue |
createHTMLDocument(java.lang.String documentName)
Creates a HTML document from the BIRT report. |
byte[] |
createPDF()
Creates a PDF document as byte array from the BIRT report. |
void |
createPDF(java.io.OutputStream out)
Creates a PDF document from the BIRT report and writes it to the given output stream. |
DataDocumentValue |
createPDFDocument(java.lang.String documentName)
Creates a PDF document from the BIRT report. |
void |
resetParameterValues()
Resets all BIRT report parameter values. |
void |
setParameterValue(java.lang.String name,
java.lang.Object value)
Sets a BIRT report parameter to a given value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final transient java.lang.String RCS_ID
public static final transient java.lang.String RCS_REV
| Constructor Detail |
|---|
public BirtReport(DataDocumentValue rptDefinition)
throws java.lang.Exception
rptDefinition - the BIRT report definition as data document value
java.lang.Exception - on any problem
public BirtReport(byte[] rptDefinition)
throws java.lang.Exception
rptDefinition - the BIRT report definition as byte array
java.lang.Exception - on any problem
public BirtReport(java.io.InputStream rptDefinitionStream)
throws java.lang.Exception
rptDefinitionStream - the BIRT report definition as input stream
java.lang.Exception - on any problem| Method Detail |
|---|
public void setParameterValue(java.lang.String name,
java.lang.Object value)
name - the name of the BIRT report parametervalue - the parameter valuepublic void resetParameterValues()
This method could be used to create multiple report output documents with different parameter settings without creating multiple instances of this class, which would lead to parse the BIRT report definition multiple times.
public DataDocumentValue createPDFDocument(java.lang.String documentName)
throws java.lang.Exception
documentName - the name of the document
java.lang.Exception - on any problem
public DataDocumentValue createHTMLDocument(java.lang.String documentName)
throws java.lang.Exception
documentName - the name of the document
java.lang.Exception - on any problem
public byte[] createPDF()
throws java.lang.Exception
java.lang.Exception - on any problem
public byte[] createHTML()
throws java.lang.Exception
java.lang.Exception - on any problem
public void createPDF(java.io.OutputStream out)
throws java.lang.Exception
out - the output stream
java.lang.Exception - on any problem
public void createHTML(java.io.OutputStream out)
throws java.lang.Exception
out - the output stream
java.lang.Exception - on any problem
|
jACOB 2.7 API Documentation. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||