public abstract class SheetReaderAbs<T> extends Object implements SheetReader<T>
| Modifier and Type | Field and Description |
|---|---|
protected List<RowPostProcessor<T>> |
rowPostProcessors |
protected XceliteSheet |
sheet |
protected boolean |
skipHeader |
| Constructor and Description |
|---|
SheetReaderAbs(XceliteSheet sheet,
boolean skipHeader) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRowPostProcessor(RowPostProcessor<T> rowPostProcessor)
Adds a row post processor.
|
XceliteSheet |
getSheet()
Gets the sheet.
|
protected Object |
readValueFromCell(org.apache.poi.ss.usermodel.Cell cell) |
void |
removeRowPostProcessor(RowPostProcessor<T> rowPostProcessor)
Removes a row post processor.
|
void |
skipHeaderRow(boolean skipHeaderRow)
Whether to skip the first row or not when reading the sheet.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadprotected final XceliteSheet sheet
protected final List<RowPostProcessor<T>> rowPostProcessors
protected boolean skipHeader
public SheetReaderAbs(XceliteSheet sheet, boolean skipHeader)
protected Object readValueFromCell(org.apache.poi.ss.usermodel.Cell cell)
public void skipHeaderRow(boolean skipHeaderRow)
SheetReaderskipHeaderRow in interface SheetReader<T>skipHeaderRow - true to skip the header row, false otherwisepublic XceliteSheet getSheet()
SheetReadergetSheet in interface SheetReader<T>public void addRowPostProcessor(RowPostProcessor<T> rowPostProcessor)
SheetReaderaddRowPostProcessor in interface SheetReader<T>rowPostProcessor - the post row processor to addpublic void removeRowPostProcessor(RowPostProcessor<T> rowPostProcessor)
SheetReaderremoveRowPostProcessor in interface SheetReader<T>rowPostProcessor - the post row processor to removeCopyright © 2014. All rights reserved.