public class ExportExcelExtensions extends Object
ExportExcelExtensions provides methods for export excel sheet File
objects| Constructor and Description |
|---|
ExportExcelExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static List<String[][]> |
exportWorkbook(File excelSheet)
Exports the given excel sheet
File and return a two dimensonal array which holds the
sheets and arrays of the rows |
static List<List<List<String>>> |
exportWorkbookAsStringList(File excelSheet)
Exports the given excel sheet
File in a list of lists with the list of the sheets and
lists of the rows. |
static String |
getCellValueAsString(org.apache.poi.ss.usermodel.Cell cell)
Gets the cell value as String from the given
Cell object |
static org.apache.poi.hssf.usermodel.HSSFWorkbook |
replaceNullCellsIntoEmptyCells(File excelSheet)
Replace null cells into empty cells.
|
public static List<String[][]> exportWorkbook(File excelSheet) throws IOException, FileNotFoundException
File and return a two dimensonal array which holds the
sheets and arrays of the rowsexcelSheet - the excel sheet FileIOException - Signals that an I/O exception has occurred.FileNotFoundException - Signals that the file was not foundpublic static String getCellValueAsString(org.apache.poi.ss.usermodel.Cell cell)
Cell objectcell - the cellpublic static List<List<List<String>>> exportWorkbookAsStringList(File excelSheet) throws IOException, FileNotFoundException
File in a list of lists with the list of the sheets and
lists of the rows.excelSheet - the excel sheet FileIOException - Signals that an I/O exception has occurred.FileNotFoundException - Signals that the file was not foundpublic static org.apache.poi.hssf.usermodel.HSSFWorkbook replaceNullCellsIntoEmptyCells(File excelSheet) throws IOException, FileNotFoundException
excelSheet - the excel sheetIOException - Signals that an I/O exception has occurred.FileNotFoundException - the file not found exceptionCopyright © 2015–2019 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.