public class MDBServiceImpl extends AbstractService implements MDBService
MDBService for parsing MDB database files.| Modifier and Type | Field and Description |
|---|---|
private Vector<Holder> |
boundValues |
private MdbHandle |
mdb |
| Constructor and Description |
|---|
MDBServiceImpl()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the currently initialized file.
|
private boolean |
fetchRow(MdbTableDef table)
Fetches the next row from the table, ignoring potential parsing exceptions.
|
void |
initialize(String filename)
Prepare the given .mdb file for reading.
|
Vector<Vector<String[]>> |
parseDatabase()
Read all tables from a pre-initialized .mdb files.
|
checkClassDependencypublic void initialize(String filename) throws IOException
MDBServiceMDBService.parseDatabase().initialize in interface MDBServiceIOException - if a problem occurs when opening the filepublic Vector<Vector<String[]>> parseDatabase() throws IOException
MDBServiceMDBService.initialize(String) must be called before calling parseDatabase().parseDatabase in interface MDBServiceIOException - if there is a problem reading the table datapublic void close()
MDBServiceclose in interface MDBServiceprivate boolean fetchRow(MdbTableDef table)
table - Table to fetch the next available row from.true if there are further rows to fetch.
false if there are no further rows to fetch or an exception
is thrown while parsing the row.Copyright © 2016 Open Microscopy Environment