public class MDBServiceImpl extends loci.common.services.AbstractService implements MDBService
MDBService
for parsing MDB database files.Modifier and Type | Field and Description |
---|---|
private Vector<mdbtools.libmdb.Holder> |
boundValues |
private mdbtools.libmdb.MdbHandle |
mdb |
Constructor and Description |
---|
MDBServiceImpl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the currently initialized file.
|
private boolean |
fetchRow(mdbtools.libmdb.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.
|
private mdbtools.libmdb.MdbHandle mdb
private Vector<mdbtools.libmdb.Holder> boundValues
public void initialize(String filename) throws IOException
MDBService
MDBService.parseDatabase()
.initialize
in interface MDBService
IOException
- if a problem occurs when opening the filepublic Vector<Vector<String[]>> parseDatabase() throws IOException
MDBService
MDBService.initialize(String)
must be called before calling parseDatabase().parseDatabase
in interface MDBService
IOException
- if there is a problem reading the table datapublic void close()
MDBService
close
in interface MDBService
private boolean fetchRow(mdbtools.libmdb.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 © 2017 Open Microscopy Environment