Hi,
One change which we have in our local build of POI is the extraction of
super-interfaces to make streaming read of worksheets a bit nicer:
"CellEssence" is implemented by XSSFCell, HSSFCell and SXSSFCell:
"RowEssence" is similar and exposes CellEssences for that row.
Is the introduction of these interfaces something you'd consider
accepting a patch for? How do the names sound? Full list of methods
below for the record.
Thanks,
David
public interface RowEssence {
int getRowNum();
Iterable<CellEssence> getCells();
CellEssence getCell(int index);
}
public interface CellEssence {
CellStyle getCellStyle();
int getCellType();
String getStringCellValue();
boolean getBooleanCellValue();
RichTextString getRichStringCellValue();
double getNumericCellValue();
String getCellFormula();
int getCachedFormulaResultType();
int getRowIndex();
int getColumnIndex();
String getSheetName();
boolean isDate1904();
byte getErrorCellValue();
}
--
David North, Technical Lead, CoreFiling Limited
http://www.corefiling.com
Phone: +44-1865-203192
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]