public class ReportRenderer extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
ReportRenderer() |
| Modifier and Type | Method and Description |
|---|---|
static java.awt.Component |
convertReport2AWT(ReportInstance report,
java.io.InputStream xslt)
Used for embedding a viewer pane in swing applications
|
static void |
convertReport2FO(ReportInstance report,
java.io.File xslt,
java.io.File fo) |
static void |
convertReport2HTML(ReportInstance report,
java.io.File xslt,
java.io.File html)
Converts a Report object to a PDF file.
|
static void |
convertReport2PDF(ReportInstance report,
java.io.File pdf,
java.io.InputStream xsltStream)
Converts a Report object to a PDF file.
|
static void |
convertReport2XML(ReportLayout report,
java.io.File xml) |
static void |
convertReport2XML(ReportLayout report,
java.io.OutputStream xml)
Converts a Report object to XML.
|
static void |
convertXML2FO(java.io.File xml,
java.io.File xslt,
java.io.File fo)
Converts an XML file to an XSL-FO file using JAXP (XSLT).
|
static ReportLayout |
convertXML2Report(java.io.File xml) |
static ReportLayout |
convertXML2Report(java.io.InputStream xml) |
static void |
main(java.lang.String[] args)
Main method.
|
void |
renderReportAsAWT(ReportInstance report,
java.io.File xslt)
Deprecated.
|
static void |
reorderPNGReaders() |
public static org.apache.commons.logging.Log log
public ReportRenderer()
public static void reorderPNGReaders()
public static void convertReport2PDF(ReportInstance report, java.io.File pdf, java.io.InputStream xsltStream) throws java.io.IOException, org.apache.fop.apps.FOPException, javax.xml.transform.TransformerException
report - the Report objectpdf - the target PDF filexsltStream - the stylesheet input streamjava.io.IOException - In case of an I/O problemorg.apache.fop.apps.FOPException - In case of a FOP problemjavax.xml.transform.TransformerException - In case of a XSL transformation problempublic static ReportLayout convertXML2Report(java.io.File xml) throws java.io.IOException, javax.xml.transform.TransformerException
java.io.IOExceptionjavax.xml.transform.TransformerExceptionpublic static ReportLayout convertXML2Report(java.io.InputStream xml) throws java.io.IOException, javax.xml.transform.TransformerException
java.io.IOExceptionjavax.xml.transform.TransformerExceptionpublic static void convertReport2XML(ReportLayout report, java.io.File xml) throws java.io.IOException, javax.xml.transform.TransformerException
java.io.IOExceptionjavax.xml.transform.TransformerExceptionpublic static void convertReport2XML(ReportLayout report, java.io.OutputStream xml) throws java.io.IOException, javax.xml.transform.TransformerException
report - the Report objectxml - the target XML filejava.io.IOException - In case of an I/O problemjavax.xml.transform.TransformerException - In case of a XSL transformation problempublic static void convertXML2FO(java.io.File xml, java.io.File xslt, java.io.File fo) throws java.io.IOException, javax.xml.transform.TransformerException
xml - the XML filexslt - the stylesheet filefo - the target XSL-FO filejava.io.IOException - In case of an I/O problemjavax.xml.transform.TransformerException - In case of a XSL transformation problempublic static void convertReport2FO(ReportInstance report, java.io.File xslt, java.io.File fo) throws java.io.IOException, javax.xml.transform.TransformerException
java.io.IOExceptionjavax.xml.transform.TransformerExceptionpublic void renderReportAsAWT(ReportInstance report, java.io.File xslt) throws java.io.IOException, org.apache.fop.apps.FOPException, javax.xml.transform.TransformerException
report - Report to renderxslt - the transform to use for rendering the Reportjava.io.IOExceptionorg.apache.fop.apps.FOPExceptionjavax.xml.transform.TransformerExceptionfor an embedded soltion.public static java.awt.Component convertReport2AWT(ReportInstance report, java.io.InputStream xslt) throws java.io.IOException, org.apache.fop.apps.FOPException, javax.xml.transform.TransformerException
report - Report to renderxslt - transform to use for rendering Reportjava.io.IOExceptionorg.apache.fop.apps.FOPExceptionjavax.xml.transform.TransformerExceptionpublic static void convertReport2HTML(ReportInstance report, java.io.File xslt, java.io.File html) throws java.io.IOException, javax.xml.transform.TransformerException
report - the Report objectxslt - the stylesheet filehtml - the target HTML filejava.io.IOException - In case of an I/O problemorg.apache.fop.apps.FOPException - In case of a FOP problemjavax.xml.transform.TransformerException - In case of a XSL transformation problempublic static void main(java.lang.String[] args)
args - command-line arguments