public interface RowAccess extends RowData, java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this reader.
|
java.lang.Object |
getCell(int icol)
Returns the contents of a given cell at the current row.
|
java.lang.Object[] |
getRow()
Returns the contents of all the cells at the current row.
|
void |
setRowIndex(long irow)
Sets the row index to which subsequent data accesses will refer.
|
void setRowIndex(long irow)
throws java.io.IOException
This method must be called before the first invocation of
getCell(int)/getRow(), otherwise behaviour is undefined
(but implementations will likely throw an unchecked exception
on subsequent getCell/getRow calls).
The effect of setting the value to an out of range value is undefined;
it may throw an exception here, or during subsequent calls,
or behave otherwise.
irow - row indexjava.io.IOExceptionjava.lang.Object getCell(int icol)
throws java.io.IOException
Behaviour is undefined if the row index has not been set,
or has been set to a value for which no table row exists;
however implementations are encouraged to throw suitable
RuntimeException in this case.
java.lang.Object[] getRow()
throws java.io.IOException
Note the returned object may be reused between invocations,
Behaviour is undefined if the row index has not been set,
or has been set to a value for which no table row exists;
however implementations are encouraged to throw a suitable
RuntimeException in this case.
void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOException