public class DefaultRowSet extends java.lang.Object implements RowSet
RowSet interface.DefaultRowSetFactory| Constructor and Description |
|---|
DefaultRowSet(Sheet sheet,
RowSetMetaData metaData) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getColumnValue(int idx)
Retrieves the value of the indicated column in the current row as a
String. |
java.lang.String[] |
getCurrentRow()
Return the current row as a
String[]. |
int |
getCurrentRowIndex()
Returns the current row number
|
RowSetMetaData |
getMetaData()
Retrieves the meta data (name of the sheet, number of columns, names) of this row set.
|
java.util.Properties |
getProperties()
Construct name-value pairs from the column names and string values.
|
boolean |
next()
Move to the next row in the document.
|
public DefaultRowSet(Sheet sheet, RowSetMetaData metaData)
public RowSetMetaData getMetaData()
RowSetgetMetaData in interface RowSetRowSetMetaData instance.public boolean next()
RowSetpublic int getCurrentRowIndex()
RowSetgetCurrentRowIndex in interface RowSetpublic java.lang.String[] getCurrentRow()
RowSetString[].getCurrentRow in interface RowSetString[]public java.lang.String getColumnValue(int idx)
RowSetString.getColumnValue in interface RowSetidx - the column index, 0 basedString respresenting the column value.public java.util.Properties getProperties()
RowSetnull
values are omitted.getProperties in interface RowSet