|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.report.datablock.PDFWriter
public class 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
| Constructor Summary | |
|---|---|
PDFWriter(java.lang.String xslSource)
Default Constructor |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||