Package org.molgenis.io.excel

Examples of org.molgenis.io.excel.ExcelReader


    try
    {
      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();
View Full Code Here


    try
    {
      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();
View Full Code Here

      String tableName = FilenameUtils.getBaseName(name);
      return new SingleTableReader(new CsvReader(file, '\t'), tableName);
    }
    else if (name.endsWith(".xls") || name.endsWith(".xlsx"))
    {
      return new ExcelReader(file);
    }
    else if (name.endsWith(".zip"))
    {
      return new ZipTableReader(new ZipFile(file));
    }
View Full Code Here

TOP

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

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.