public interface TableReader extends Reader
| Modifier and Type | Method and Description |
|---|---|
Object |
getCell()
Gets the value of the current cell
|
boolean |
getCellAsBoolean()
Gets the value of the current cell as an boolean
|
double |
getCellAsDouble()
Gets the value of the current cell as a double
|
int |
getCellAsInt()
Gets the value of the current cell as an int
|
String |
getCellAsString()
Gets the value of the current cell as a string
|
boolean |
hasNextColumn()
Determines if there another cell in the current column
|
boolean |
hasNextRow()
Determines if there is another row in the current data source
|
boolean |
nextColumn()
Moves the reader on to the next cell in the column.
|
boolean |
nextRow()
Moves the reader on to the next row in the data source.
|
List<List<Object>> |
readCells()
Read all cells from the data source at one time
|
Object[][] |
readCellsAsArray()
Read all cells from the data source at one time
|
void |
setAllConversionTypes(int[] conversionTypes) |
boolean hasNextRow()
true if this is not the last cell in the row, false if it is the lastboolean nextRow()
throws IOException
true if this is not the last cell in the row, false if it is the lastIOException - if the data source can not be readboolean hasNextColumn()
true if this is not the last cell in the column, false if it is the lastboolean nextColumn()
throws IOException
true if this is not the last cell in the column, false if it is the lastIOException - if the data source can not be readObject getCell() throws IOException
IOException - if the data source can not be readString getCellAsString() throws IOException
IOException - if the data source can not be read or can not be converted to Stringdouble getCellAsDouble()
throws IOException
IOException - if the data source can not be read or can not be converted to doubleint getCellAsInt()
throws IOException
IOException - if the data source can not be read or can not be converted to an intboolean getCellAsBoolean()
throws IOException
IOException - if the data source can not be read or can not be converted to an booleanList<List<Object>> readCells() throws IOException
IOException - if the data source can not be readObject[][] readCellsAsArray() throws IOException
IOException - if the data source can not be readvoid setAllConversionTypes(int[] conversionTypes)
Copyright © 2016. All rights reserved.