|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.report.datablock.PDFWriter
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
Field Summary | |
private static java.lang.String |
LOG4J_CATEGORY
The log4j category used to log debug messsages and statements. |
(package private) org.apache.fop.apps.Driver |
m_driver
FOP Driver |
(package private) java.lang.String |
m_xslSource
XSL path |
Constructor Summary | |
PDFWriter(java.lang.String xslSource)
Default Constructor |
Method Summary | |
private org.xml.sax.XMLReader |
createParser()
Creates an xml parser. |
void |
generateHTML(java.io.FileReader xml,
java.io.OutputStream fotFileName)
This converts the outage report from xml to pdf format using fop. |
void |
generatePDF(java.io.FileReader xml,
java.io.OutputStream pdfWriter,
java.lang.String fotFileName)
This converts the outage report from xml to pdf format using fop. |
private void |
initDriver()
Initialises the fop driver |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String LOG4J_CATEGORY
org.apache.fop.apps.Driver m_driver
java.lang.String m_xslSource
Constructor Detail |
public PDFWriter(java.lang.String xslSource)
Method Detail |
public void generateHTML(java.io.FileReader xml, java.io.OutputStream fotFileName) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, java.io.IOException, java.lang.Exception
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
java.io.IOException
java.lang.Exception
public void generatePDF(java.io.FileReader xml, java.io.OutputStream pdfWriter, java.lang.String fotFileName) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, java.io.IOException, java.lang.Exception
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
java.io.IOException
java.lang.Exception
private void initDriver() throws java.lang.Exception
java.lang.Exception
private org.xml.sax.XMLReader createParser() throws java.lang.Exception
java.lang.Exception
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |