Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How to use apache poi-hssf and apache xssf api?


Asked by Esther Burgess on Nov 29, 2021 FAQ



If you're merely reading spreadsheet data, then use the eventmodel api in either the org.apache.poi.hssf.eventusermodel package, or the org.apache.poi.xssf.eventusermodel package, depending on your file format. If you're modifying spreadsheet data then use the usermodel api.
Furthermore,
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. HSSF and XSSF provides ways to read spreadsheets create, modify, read and write XLS spreadsheets.
Similarly, Apache POI-XSSF only requires Java run-time. First of all, you need to have the Java Development Kit (JDK) installed on your system. If you already have it then proceed to the Apache POI's download page to get the latest stable release in an archive.
Also Know,
Apache POI main classes usually start with either HSSF, XSSF or SXSSF. HSSF – is the POI Project’s pure Java implementation of the Excel ’97 (-2007) file format. e.g. HSSFWorkbook, HSSFSheet.
Indeed,
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.