On Wed, 16 Feb 2011, HODAC, Olivier wrote:
I am new in using POI and I am wondering how resources are released when I open a new workbook using
  hssfWorkbook = new HSSFWorkbook(new 
FileInputStream(templateFolder+"/"+templateName));

The input stream will be closed for you by default (see the constructor javadocs).

I do not see any close() method. It means that the xsl file is released when the workbook is killed by the garbage collector?

Yup. When you're done, just null your objects / let them go out of scope

One other question, I open several workbooks, and I suspect the POI processes to run iexplore that consumes a*lot* of CPU. Is there a link?

POI is pure java, and doesn't touch internet explorer in any way...

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to