org.springframework.batch.item.excel
Interface Sheet

All Known Implementing Classes:
JxlSheet, PoiSheet

public interface Sheet

Interface to wrap different Excel implementations like JExcel, JXL or 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[].
 

Method Detail

getNumberOfRows

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

Returns:
the number of rows.

getName

String getName()
Get the name of the sheet.

Returns:
the name of the sheet.

getRow

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

Parameters:
rowNumber - the row number to read.
Returns:
a String[] or null


Copyright © 2017. All rights reserved.