Package io.github.connellite.excel
Class ExcelRowIterator
java.lang.Object
io.github.connellite.excel.AbstractExcelSheetRowIterator<Object>
io.github.connellite.excel.ExcelRowIterator
- All Implemented Interfaces:
AutoCloseable,Iterator<Map<String,Object>>
Forward-only iterator over sheet rows with
Map values taken from POI cell types (strings, numbers as
Double for plain numbers, booleans, formula results). Date-formatted numeric cells are returned as formatted strings.
Implements Iterable and AutoCloseable with the base class contract; AbstractExcelSheetRowIterator.close() closes the workbook.-
Field Summary
Fields inherited from class io.github.connellite.excel.AbstractExcelSheetRowIterator
columnNames, formatter, rowIterator -
Constructor Summary
ConstructorsConstructorDescriptionExcelRowIterator(org.apache.poi.ss.usermodel.Workbook workbook, String sheetName) Creates an iterator over the given sheet. -
Method Summary
Methods inherited from class io.github.connellite.excel.AbstractExcelSheetRowIterator
asIterable, close, getCellObjectValue, getColumnNames, hasNextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove