Sha256: a3b805884af18974ca5605d5d84e8b1b6a1f452e42fa9d17bf64d4c84295f6d1
Contents?: true
Size: 1.22 KB
Versions: 2
Compression:
Stored size: 1.22 KB
Contents
package org.embulk.parser.poi_excel.bean.record; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.util.CellReference; import org.embulk.parser.poi_excel.bean.PoiExcelColumnBean; public abstract class PoiExcelRecord { // loop record private Sheet sheet; public final void initialize(Sheet sheet, int skipHeaderLines) { this.sheet = sheet; initializeLoop(skipHeaderLines); } protected abstract void initializeLoop(int skipHeaderLines); public final Sheet getSheet() { return sheet; } public abstract boolean exists(); public abstract void moveNext(); // current record public final void logStart() { logStartEnd("start"); } public final void logEnd() { logStartEnd("end"); } protected abstract void logStartEnd(String part); public abstract int getRowIndex(PoiExcelColumnBean bean); public abstract int getColumnIndex(PoiExcelColumnBean bean); public abstract Cell getCell(PoiExcelColumnBean bean); public CellReference getCellReference(PoiExcelColumnBean bean) { int rowIndex = getRowIndex(bean); int columnIndex = getColumnIndex(bean); return new CellReference(rowIndex, columnIndex); } }
Version data entries
2 entries across 2 versions & 1 rubygems