mgi.logme.export
Class MyPdf

java.lang.Object
  extended bymgi.logme.export.MyPdf
All Implemented Interfaces:
java.lang.Runnable

public class MyPdf
extends java.lang.Object
implements java.lang.Runnable


Constructor Summary
MyPdf()
           
 
Method Summary
 java.io.ByteArrayOutputStream getPdf()
          Gets the complete PDF data
 int getPercentage()
          Gets the current percentage of the file that is done.
 void run()
           
 void setValues(int m, int j, java.util.List l, javax.servlet.http.HttpSession ses)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyPdf

public MyPdf()
Method Detail

setValues

public void setValues(int m,
                      int j,
                      java.util.List l,
                      javax.servlet.http.HttpSession ses)

run

public void run()
Specified by:
run in interface java.lang.Runnable
See Also:
Runnable.run()

getPdf

public java.io.ByteArrayOutputStream getPdf()
                                     throws com.lowagie.text.DocumentException
Gets the complete PDF data

Returns:
the PDF as an array of bytes
Throws:
com.lowagie.text.DocumentException - when the document isn't ready yet

getPercentage

public int getPercentage()
Gets the current percentage of the file that is done.

Returns:
a percentage or -1 if something went wrong.