Package loci.formats.services
Interface MDBService
- All Superinterfaces:
loci.common.services.Service
- All Known Implementing Classes:
MDBServiceImpl
public interface MDBService
extends loci.common.services.Service
Interface defining methods for parsing MDB database files.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the currently initialized file.voidinitialize(String filename) Prepare the given .mdb file for reading.Read all tables from a pre-initialized .mdb files.parseTable(String name) Read named table from a pre-initialized .mdb files.
-
Method Details
-
initialize
Prepare the given .mdb file for reading. This method must be called beforeparseDatabase().- Throws:
IOException- if a problem occurs when opening the file
-
parseDatabase
Read all tables from a pre-initialized .mdb files. Each Vector<String[]> in the outer Vector represents a table; each String[] in a table represents a row, and each element of the String[] represents the value of a particular column within the row. The first row in each table contains the names for each column. The first entry in the column name row is the name of the table.initialize(String)must be called before calling parseDatabase().- Throws:
IOException- if there is a problem reading the table data
-
parseTable
Read named table from a pre-initialized .mdb files. Each String[] in a table represents a row, and each element of the String[] represents the value of a particular column within the row. The first row in the table contains the names for each column.initialize(String)must be called before calling parseTable.- Parameters:
name- table name- Returns:
- table data or null if the named table does not exist
- Throws:
IOException- if there is a problem reading the table data
-
close
void close()Close the currently initialized file.
-