Package org.molgenis.io.excel

Examples of org.molgenis.io.excel.ExcelSheetReader


    {
      excelExporter.export(new FileOutputStream(xlsFile));

      // check output
      ExcelReader excelReader = new ExcelReader(xlsFile);
      ExcelSheetReader sheetReader = excelReader.getSheet("Sheet1");
      try
      {
        Iterator<Tuple> it = sheetReader.iterator();
        assertTrue(it.hasNext());
        Tuple tuple1 = it.next();
        assertEquals(tuple1.getString("col1"), row1.getString("col1"));
        assertEquals(tuple1.getString("col2"), row1.getString("col2"));
        assertEquals(tuple1.getString("col3"), row1.getString("col3"));
View Full Code Here


    {
      excelExporter.export(new FileOutputStream(xlsFile));

      // check output
      ExcelReader excelReader = new ExcelReader(xlsFile);
      ExcelSheetReader sheetReader = excelReader.getSheet("Sheet1");
      try
      {
        Iterator<Tuple> it = sheetReader.iterator();
        assertTrue(it.hasNext());
        Tuple tuple1 = it.next();
        assertEquals(tuple1.getString("col1"), row1.getString("col1"));
        assertEquals(tuple1.getString("col2"), row1.getString("col2"));
        assertEquals(tuple1.getString("col3"), row1.getString("col3"));
View Full Code Here

TOP

Related Classes of org.molgenis.io.excel.ExcelSheetReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.