org.opennms.report.datablock
Class PDFWriter

java.lang.Object
  extended by org.opennms.report.datablock.PDFWriter

public class PDFWriter
extends Object

PDFWriter is a XML to PDF generator. It uses apache's fop api for conversion. The conversion is a 2 step process that takes 1) XML + XSL to FOT (Formatting Object Tree) 2) FOT is converted to PDF using the FOP api's

Author:
Jacinta Remedios , oculan.com

Constructor Summary
PDFWriter(String xslSource)
          Default Constructor
 
Method Summary
 void generateHTML(FileReader xml, OutputStream fotFileName)
          This converts the outage report from xml to pdf format using fop.
 void generatePDF(FileReader xml, OutputStream pdfWriter, String fotFileName)
          This converts the outage report from xml to pdf format using fop.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFWriter

public PDFWriter(String xslSource)
Default Constructor

Method Detail

generateHTML

public void generateHTML(FileReader xml,
                         OutputStream fotFileName)
                  throws org.exolab.castor.xml.MarshalException,
                         org.exolab.castor.xml.ValidationException,
                         IOException,
                         Exception
This converts the outage report from xml to pdf format using fop.

Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
Exception

generatePDF

public void generatePDF(FileReader xml,
                        OutputStream pdfWriter,
                        String fotFileName)
                 throws org.exolab.castor.xml.MarshalException,
                        org.exolab.castor.xml.ValidationException,
                        IOException,
                        Exception
This converts the outage report from xml to pdf format using fop.

Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
Exception


Copyright ? 2007. All Rights Reserved.