Package ome.metakit
Class MetakitReader
java.lang.Object
ome.metakit.MetakitReader
Top-level reader for Metakit database files.
See http://equi4.com/metakit/metakit-ff.html for basic documentation on the
Metakit file format.
- Author:
- Melissa Linkert melissa at glencoesoftware.com
-
Constructor Summary
ConstructorsConstructorDescriptionMetakitReader(String file) MetakitReader(loci.common.RandomAccessInputStream stream) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the reader and release any resources in use.String[]getColumnNames(int tableIndex) Retrieve the name of every column in the table with the given index.String[]getColumnNames(String tableName) Retrieve the name of every column in the named table.Class[]getColumnTypes(int tableIndex) Retrieve the type for every column in the table with the given index.Class[]getColumnTypes(String tableName) Retrieve the type for every column in the named table.intgetRowCount(int tableIndex) Retrieve the number of rows in the table with the given index.intgetRowCount(String tableName) Retrieve the number of rows in the named table.Object[]getRowData(int rowIndex, int tableIndex) Retrieve the given row of data from the table with the given index.Object[]getRowData(int rowIndex, String tableName) Retrieve the given row of data from the named table.intRetrieve the number of tables in this database file.Object[][]getTableData(int tableIndex) Retrieve all of the tabular data for the table with the given index.Object[][]getTableData(String tableName) Retrieve all of the tabular data for the named table.String[]Retrieve the name of every table in this database file.
-
Constructor Details
-
MetakitReader
- Throws:
IOExceptionMetakitException
-
MetakitReader
- Throws:
MetakitException
-
-
Method Details
-
close
public void close()Close the reader and release any resources in use. -
getTableCount
public int getTableCount()Retrieve the number of tables in this database file. -
getTableNames
Retrieve the name of every table in this database file. The length of the returned array is equivalent togetTableCount(). -
getColumnNames
Retrieve the name of every column in the table with the given index. Tables are indexed from 0 to.getTableCount()- 1 -
getColumnNames
Retrieve the name of every column in the named table. -
getColumnTypes
Retrieve the type for every column in the table with the given index. Tables are indexed from 0 to. Every Object in the arrays returned bygetTableCount()- 1getTableData(int)andgetTableData(String)will be an instance of the corresponding Class in the Class[] returned by this method. -
getColumnTypes
Retrieve the type for every column in the named table. Every Object in the arrays returned bygetTableData(int)andgetTableData(String)will be an instance of the corresponding Class in the Class[] returned by this method. -
getRowCount
public int getRowCount(int tableIndex) Retrieve the number of rows in the table with the given index. Tables are indexed from 0 to.getTableCount()- 1 -
getRowCount
Retrieve the number of rows in the named table. -
getTableData
Retrieve all of the tabular data for the table with the given index. Tables are indexed from 0 to.getTableCount()- 1- See Also:
-
getTableData
Retrieve all of the tabular data for the named table.- See Also:
-
getRowData
Retrieve the given row of data from the table with the given index. Tables are indexed from 0 to.getTableCount()- 1- See Also:
-
getRowData
Retrieve the given row of data from the named table.- See Also:
-