public interface SavotDataReader
extends java.io.Closeable
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getCell(int indColumn)
Gets the specified cell of the last read row.
|
java.lang.String |
getCellAsString(int indColumn)
Gets the specified cell of the last read row as a String.
|
java.lang.Object[] |
getRow()
Gets the last read row.
|
SavotTD |
getTD(int indColumn)
Gets the specified cell of the last read row as
SavotTD . |
SavotTR |
getTR()
Gets the last read row as a
SavotTR object. |
boolean |
next()
Reads to the next row.
|
boolean next() throws java.io.IOException
Reads to the next row.
Once this function called, you can get the full row with getRow()
or getTR()
,
or get specific cells with getCell(int)
, getCellAsString(int)
or getTD(int)
.
java.io.IOException
- If an error occurs while reading the next row.java.lang.Object[] getRow() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- If next
has not yet been called, if the EOF has been reached, or if the reader is closed.SavotTR getTR() throws java.lang.IllegalStateException
SavotTR
object.java.lang.IllegalStateException
- If next
has not yet been called, if the EOF has been reached, or if the reader is closed.java.lang.Object getCell(int indColumn) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalStateException
indColumn
- Index of the cell to get.java.lang.ArrayIndexOutOfBoundsException
- If the given index is less than 0 or is greater than the number of available cell.java.lang.IllegalStateException
- If next
has not yet been called, if the EOF has been reached, or if the reader is closed.java.lang.String getCellAsString(int indColumn) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalStateException
indColumn
- Index of the cell to get.java.lang.ArrayIndexOutOfBoundsException
- If the given index is less than 0 or is greater than the number of available cell.java.lang.IllegalStateException
- If next
has not yet been called, if the EOF has been reached, or if the reader is closed.SavotTD getTD(int indColumn) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalStateException
SavotTD
.indColumn
- Index of the cell to get.java.lang.ArrayIndexOutOfBoundsException
- If the given index is less than 0 or is greater than the number of available cell.java.lang.IllegalStateException
- If next
has not yet been called, if the EOF has been reached, or if the reader is closed.