mgi.logme.export
Class MyExcel

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

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


Constructor Summary
MyExcel()
           
 
Method Summary
 java.io.ByteArrayOutputStream getExcel()
          Gets the complete Excel 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

MyExcel

public MyExcel()
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()

getExcel

public java.io.ByteArrayOutputStream getExcel()
                                       throws java.lang.Exception
Gets the complete Excel data

Returns:
the Excel as an array of bytes
Throws:
DocumentException - when the document isn't ready yet
java.lang.Exception

getPercentage

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

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