How Write In Excel Sheet Apache POI API - Part 1 (Java/Selenium)

preview_player
Показать описание
In Java, reading excel file is not similar to read word file because of cells in excel file. JDK does not provide direct API to read or write Microsoft Excel or Word document. We have to rely on the third-party library that is Apache POI.

What is Apache POI?
Apache POI (Poor Obfuscation Implementation) is a Java API for reading and writing Microsoft Documents in both formats .xls and .xlsx. It contains classes and interfaces. The Apache POI library provides two implementations for reading excel files:

HSSF (Horrible SpreadSheet Format) Implementation: It denotes an API that is working with Excel 2003 or earlier versions.
XSSF (XML SpreadSheet Format) Implementation: It denotes an API that is working with Excel 2007 or later versions.

Interfaces and Classes in Apache POI:
Interfaces
Workbook: It represents an Excel Workbook. It is an interface implement by HSSFWorkbook and XSSFWorkbook.
Cell: It is an interface. It is a high-level representation of a cell in a row of the spreadsheet. HSSFCell and XSSFCell implement Cell interface.
Classes
XLS Classes

XSSFWorkbook: It is a class representing the XLSX file.
XSSFSheet: It is a class representing the sheet in an XLSX file.

Рекомендации по теме
Комментарии
Автор

ERROR StatusLogger Log4j2 could not find a logging implementation.

eswaramoorthism