Interface RowSet
- All Known Implementing Classes:
DefaultRowSet
public interface RowSet
Used by the
org.springframework.batch.item.excel.AbstractExcelItemReader to
abstract away the complexities of the underlying Excel API implementations.- Since:
- 0.1.0
- Author:
- Marten Deinum
-
Method Summary
Modifier and TypeMethodDescriptionString[]Return the current row as aString[].intReturns the current row number.Retrieves the meta data (name of the sheet, number of columns, names) of this row set.Construct name-value pairs from the column names and string values.booleannext()Move to the next row in the document.
-
Method Details
-
getMetaData
RowSetMetaData getMetaData()Retrieves the meta data (name of the sheet, number of columns, names) of this row set.- Returns:
- a corresponding
RowSetMetaDatainstance.
-
next
boolean next()Move to the next row in the document.- Returns:
trueif the row is valid,falseif there are no more rows
-
getCurrentRowIndex
int getCurrentRowIndex()Returns the current row number.- Returns:
- the current row number
-
getCurrentRow
String[] getCurrentRow()Return the current row as aString[].- Returns:
- the row as a
String[]
-
getProperties
Properties getProperties()Construct name-value pairs from the column names and string values.nullvalues are omitted.- Returns:
- some properties representing the row set.
- Throws:
IllegalStateException- if the column name meta data is not available.
-