org.springframework.batch.item.excel.poi
Class PoiSheet

java.lang.Object
  extended by org.springframework.batch.item.excel.poi.PoiSheet
All Implemented Interfaces:
Sheet

public class PoiSheet
extends Object
implements Sheet

Sheet implementation for Apache POI.

Since:
0.5.0
Author:
Marten Deinum

Method Summary
 String getName()
          Get the name of the sheet.
 int getNumberOfRows()
          Get the number of rows in this sheet.
 String[] getRow(int rowNumber)
          Get the row as a String[].
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNumberOfRows

public int getNumberOfRows()
Get the number of rows in this sheet.

Specified by:
getNumberOfRows in interface Sheet
Returns:
the number of rows.

getName

public String getName()
Get the name of the sheet.

Specified by:
getName in interface Sheet
Returns:
the name of the sheet.

getRow

public String[] getRow(int rowNumber)
Get the row as a String[]. Returns null if the row doesn't exist.

Specified by:
getRow in interface Sheet
Parameters:
rowNumber - the row number to read.
Returns:
a String[] or null


Copyright © 2017. All rights reserved.