public class InMemoryTableInput extends AbstractTableInput implements ColumnMetadataHolder
DEFAULT_COLUMN_HEADER| Constructor and Description |
|---|
InMemoryTableInput(Object[][] data) |
| Modifier and Type | Method and Description |
|---|---|
List<ColumnMetadata> |
getColumnMetadata()
getter for columns metadata (column label/header, horizontal alignment, etc.)
|
boolean |
hasMoreRows()
returns true if there are rows left to read otherwise false
|
List<Object> |
nextRow()
retrieves the next row of data
This method should always return the same number of objects otherwise
the framework will throw an IllegaArgumentException
|
void |
open()
marks the input as open.
|
close, getStatuspublic InMemoryTableInput(Object[][] data)
data - public void open()
throws TableInputException
AbstractTableInputopen in interface TableInputopen in class AbstractTableInputTableInputExceptionpublic boolean hasMoreRows()
TableInputhasMoreRows in interface TableInputpublic List<Object> nextRow()
TableInputretrieves the next row of data
This method should always return the same number of objects otherwise the framework will throw an IllegaArgumentExceptionnextRow in interface TableInputpublic List<ColumnMetadata> getColumnMetadata()
ColumnMetadataHoldergetter for columns metadata (column label/header, horizontal alignment, etc.)
This is an optional method. If your input doesn't contain any meta data then return an empty array.getColumnMetadata in interface ColumnMetadataHolderCopyright © 2006–2015. All rights reserved.