Java write Excel files with POI event model

喜你入骨 提交于 2019-12-05 21:34:32

Here is one possibility, not very well written, though:

http://www.docjar.org/html/api/org/apache/poi/xssf/usermodel/examples/BigGridDemo.java.html

I'm using a modified version of that, which does not require temporary files and is overall more efficient

Yes. Absolutely. Look at POI-XSSF and POI-HSSF

http://poi.apache.org/spreadsheet/how-to.html#user_api

You could use the SXSSF from Apache POI

https://poi.apache.org/spreadsheet/how-to.html#sxssf

I'vr worked with SXSSF from Apache POI. It is really good for writing huge files of data since it keeps only a small part of data in memory and flushes the remaining to disk, as opposed to HSSF or XSSF which keep all data in memory till finally writing at once. But unfortunately, SXSSF is that it is meant only for writing, not for reading.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!