Tabnine Logo
MDBService.parseDatabase
Code IndexAdd Tabnine to your IDE (free)

How to use
parseDatabase
method
in
loci.formats.services.MDBService

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

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

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

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

try {
 mdb.initialize(mtb);
 rows = mdb.parseDatabase().get(0);
origin: openmicroscopy/bioformats

try {
 mdb.initialize(mtb);
 rows = mdb.parseDatabase().get(0);
loci.formats.servicesMDBServiceparseDatabase

Javadoc

Read all tables from a pre-initialized .mdb files. Each Vector in the outer Vector represents a table; each String[] in a table represents a row, and each element of the String[] represents the value of a particular column within the row. The first row in each table contains the names for each column. The first entry in the column name row is the name of the table. #initialize(String) must be called before calling parseDatabase().

Popular methods of MDBService

  • initialize
    Prepare the given .mdb file for reading. This method must be called before #parseDatabase().
  • close
    Close the currently initialized file.

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • String (java.lang)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • From CI to AI: The AI layer in your organization
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