Tabnine Logo
MDBService
Code IndexAdd Tabnine 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)

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
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now