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.
|
checkClassDependency
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(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