Constructor and Description |
---|
MetakitReader(RandomAccessInputStream stream) |
MetakitReader(java.lang.String file) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the reader and release any resources in use.
|
java.lang.String[] |
getColumnNames(int tableIndex)
Retrieve the name of every column in the table with the given index.
|
java.lang.String[] |
getColumnNames(java.lang.String tableName)
Retrieve the name of every column in the named table.
|
java.lang.Class[] |
getColumnTypes(int tableIndex)
Retrieve the type for every column in the table with the given index.
|
java.lang.Class[] |
getColumnTypes(java.lang.String tableName)
Retrieve the type for every column in the named table.
|
int |
getRowCount(int tableIndex)
Retrieve the number of rows in the table with the given index.
|
int |
getRowCount(java.lang.String tableName)
Retrieve the number of rows in the named table.
|
java.lang.Object[] |
getRowData(int rowIndex,
int tableIndex)
Retrieve the given row of data from the table with the given index.
|
java.lang.Object[] |
getRowData(int rowIndex,
java.lang.String tableName)
Retrieve the given row of data from the named table.
|
int |
getTableCount()
Retrieve the number of tables in this database file.
|
java.lang.Object[][] |
getTableData(int tableIndex)
Retrieve all of the tabular data for the table with the given index.
|
java.lang.Object[][] |
getTableData(java.lang.String tableName)
Retrieve all of the tabular data for the named table.
|
java.lang.String[] |
getTableNames()
Retrieve the name of every table in this database file.
|
public MetakitReader(java.lang.String file) throws java.io.IOException, MetakitException
java.io.IOException
MetakitException
public MetakitReader(RandomAccessInputStream stream) throws MetakitException
MetakitException
public void close()
public int getTableCount()
public java.lang.String[] getTableNames()
getTableCount()
.public java.lang.String[] getColumnNames(int tableIndex)
getTableCount()
- 1
.public java.lang.String[] getColumnNames(java.lang.String tableName)
public java.lang.Class[] getColumnTypes(int tableIndex)
getTableCount()
- 1
.
Every Object in the arrays returned by getTableData(int)
and
getTableData(String)
will be an instance of the corresponding
Class in the Class[] returned by this method.public java.lang.Class[] getColumnTypes(java.lang.String tableName)
getTableData(int)
and
getTableData(String)
will be an instance of the corresponding
Class in the Class[] returned by this method.public int getRowCount(int tableIndex)
getTableCount()
- 1
.public int getRowCount(java.lang.String tableName)
public java.lang.Object[][] getTableData(int tableIndex)
getTableCount()
- 1
.getColumnTypes(int)
public java.lang.Object[][] getTableData(java.lang.String tableName)
getColumnTypes(String)
public java.lang.Object[] getRowData(int rowIndex, int tableIndex)
getTableCount()
- 1
.getColumnTypes(int)
public java.lang.Object[] getRowData(int rowIndex, java.lang.String tableName)
getColumnTypes(String)
Copyright © 2014 Open Microscopy Environment