What is Apache POI?
Apache POI is a popular API that allows programmers to create, modify, and display MS Office files using Java programs.
Apache POI is a 100% open source library provided by the Apache Software Foundation.
Workbook
This is the super-interface of all classes that create or support Excel workbooks. This belongs to the org.apache.poi.ss.usermodel package. Two classes that implement this interface:
(one). HSSFWorkbook: this class has methods for reading and writing Microsoft Excel .xls files.
(2) .XSSFWorkbook: this class has Microsoft Excel read and write methods and OpenOffice xml files in .xls or .xlsx format.
HSSFWorkbook
This is the high level class in the org.apache.poi.hssf.usermodel package. This implements the workbook interface and is used for Excel .xls files.
Chetan bhagat
source share