Class AbstractReadPoiParser<T>

java.lang.Object
nl.bstoi.poiparser.core.strategy.AbstractReadPoiParser<T>
Direct Known Subclasses:
AnnotatedReadPoiParser

public abstract class AbstractReadPoiParser<T>
extends Object
User: Hylke Stapersma E-mail:[ hylke.stapersma@gmail.com] Date: 23-06-13 Time: 21:42
  • Constructor Details

    • AbstractReadPoiParser

      public AbstractReadPoiParser​(Set<CellDescriptor> cellDescriptors, org.apache.poi.ss.usermodel.Sheet sheet, Class<T> clazz)
  • Method Details

    • getCellDescriptors

      public Set<CellDescriptor> getCellDescriptors()
    • readSheet

      protected List<T> readSheet() throws PoiParserException
      Throws:
      PoiParserException
    • readSheet

      protected List<T> readSheet​(int startRow, int endRow) throws PoiParserException
      Throws:
      PoiParserException
    • ignoreRow

      public boolean ignoreRow​(org.apache.poi.ss.usermodel.Row row)
    • isEmptyRow

      public boolean isEmptyRow​(org.apache.poi.ss.usermodel.Row row)
    • isEmptyValue

      public boolean isEmptyValue​(org.apache.poi.ss.usermodel.Cell cell)
    • readRow

      protected T readRow​(String sheetName, org.apache.poi.ss.usermodel.Row row, T rowDimension) throws PoiParserException
      Throws:
      PoiParserException
    • readField

      protected void readField​(String sheetName, org.apache.poi.ss.usermodel.Row row, T rowDimension, CellDescriptor cellDescriptor) throws PoiParserException
      Throws:
      PoiParserException
    • getSheet

      public org.apache.poi.ss.usermodel.Sheet getSheet()
    • setIgnoreFirstRow

      public void setIgnoreFirstRow​(boolean ignoreFirstRow)