Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache POI-HSSF vs POI-XSSF

HSSF is the POI Project's pure Java implementation of the Excel '97(-2007) file format. XSSF is the POI Project's pure Java implementation of the Excel 2007 OOXML (.xlsx) file format.

Are there any export limitations when using HSSF?

I've once read somewhere that Excel '97 just supported <65.000 Entries.

Is it safe to use HSSF to export excel sheets with more than 65.000 Entries, or why would I use XSSF?

like image 786
0x45 Avatar asked Aug 29 '17 10:08

0x45


People also ask

What is the difference between Apache POI-HSSF and xssf?

java - Apache POI-HSSF vs POI-XSSF - Stack Overflow HSSF is the POI Project's pure Java implementation of the Excel '97(-2007) file format. XSSF is the POI Project's pure Java implementation of the Excel 2007 OOXML (.xlsx) file format.

What is the difference between sxssf and poi?

SXSSF (Since POI 3.8 beta3) Since 3.8-beta3, POI provides a low-memory footprint SXSSF API built on top of XSSF. SXSSF is an API-compatible streaming extension of XSSF to be used when very large spreadsheets have to be produced, and heap space is limited.

What is the difference between xssf and HSSF?

HSSF is the POI Project's pure Java implementation of the Excel '97 (-2007) file format. XSSF is the POI Project's pure Java implementation of the Excel 2007 OOXML (.xlsx) file format.

Can I use the SS usermodel for HSSF and xssf?

For people converting from pure HSSF usermodel, who wish to use the joint SS Usermodel for HSSF and XSSF support, then see the ss usermodel converting guide.


1 Answers

As you can see here Excel 97 to 2003 supports a maximum of 65,536 rows. So no, with HSSF you won't be able to store more than 65536 entries. However you can do it with XLSX (Excel 2007+) which can handle up to 1,048,576 rows and can be saved using XSSF. It won't be compatible with Excel 97/2003 though.

like image 177
BackSlash Avatar answered Oct 23 '22 19:10

BackSlash