How to use POI SXSSF to read a large spreadsheet

前端 未结 2 989
名媛妹妹
名媛妹妹 2021-02-08 07:18

I am trying to read an xls file by using SXSSF. I have read about SXSSF, but do not understandexactly how to use it. So I am running into some problems.

Can anybody hel

2条回答
  •  無奈伤痛
    2021-02-08 08:00

    SXSSF is only to write large excel files (xlsx) and not to read.

    To read large excel files, please refer to SAX parsing based event handling API of Apache POI at: https://poi.apache.org/components/spreadsheet/how-to.html.

    A very good working example is present at: https://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/examples/xssf/eventusermodel/XLSX2CSV.java

提交回复
热议问题