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, getStatus
public InMemoryTableInput(Object[][] data)
data
- public void open() throws TableInputException
AbstractTableInput
open
in interface TableInput
open
in class AbstractTableInput
TableInputException
public boolean hasMoreRows()
TableInput
hasMoreRows
in interface TableInput
public List<Object> nextRow()
TableInput
retrieves the next row of data
This method should always return the same number of objects otherwise the framework will throw an IllegaArgumentExceptionnextRow
in interface TableInput
public List<ColumnMetadata> getColumnMetadata()
ColumnMetadataHolder
getter 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 ColumnMetadataHolder
Copyright © 2006–2015. All rights reserved.