Codota Logo
MDBService
Code IndexAdd Codota to your IDE (free)

How to use
MDBService
in
loci.formats.services

Best Java code snippets using loci.formats.services.MDBService (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: openmicroscopy/bioformats

 mdbService.initialize(mdbFile);
Vector<Vector<String[]>> tables = mdbService.parseDatabase();
mdbService.close();
final List<String> referencedLSMs = new ArrayList<String>();
origin: openmicroscopy/bioformats

@BeforeMethod
public void setUp() throws DependencyException, IOException {
 ServiceFactory sf = new ServiceFactory();
 service = sf.getInstance(MDBService.class);
 URL file = this.getClass().getResource(TEST_FILE);
 service.initialize(file.getPath());
}
origin: openmicroscopy/bioformats

@Test
public void testData() throws IOException {
 Vector<Vector<String[]>> data = service.parseDatabase();
 assertEquals(1, data.size());
 Vector<String[]> table = data.get(0);
 assertEquals(4, table.size());
 String[] columnNames = table.get(0);
 assertEquals(COLUMNS.length + 1, columnNames.length);
 assertEquals("test table", columnNames[0]);
 for (int i=1; i<columnNames.length; i++) {
  assertEquals(columnNames[i], COLUMNS[i - 1]);
 }
 for (int i=1; i<table.size(); i++) {
  String[] row = table.get(i);
  for (int col=0; col<row.length; col++) {
   assertEquals(ROWS[i - 1][col], row[col]);
  }
 }
}
origin: ome/formats-gpl

 mdbService.initialize(mdbFile);
Vector<Vector<String[]>> tables = mdbService.parseDatabase();
mdbService.close();
final List<String> referencedLSMs = new ArrayList<String>();
origin: ome/formats-gpl

List<String[]> rows = null;
try {
 mdb.initialize(mtb);
 rows = mdb.parseDatabase().get(0);
 mdb.close();
origin: openmicroscopy/bioformats

List<String[]> rows = null;
try {
 mdb.initialize(mtb);
 rows = mdb.parseDatabase().get(0);
 mdb.close();
loci.formats.servicesMDBService

Javadoc

Interface defining methods for parsing MDB database files.

Most used methods

  • initialize
    Prepare the given .mdb file for reading. This method must be called before #parseDatabase().
  • parseDatabase
    Read all tables from a pre-initialized .mdb files. Each Vector in the outer Vector represents a tabl
  • close
    Close the currently initialized file.

Popular in Java

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • orElseThrow (Optional)
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • JPanel (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now