org.molgenis.oneclickimporter.service.ExcelService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of molgenis-one-click-importer Show documentation
Show all versions of molgenis-one-click-importer Show documentation
Plugin module for importing data with automatic metadata determination (not part of
the importer
framework).
package org.molgenis.oneclickimporter.service;
import java.io.File;
import java.io.IOException;
import java.util.List;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.ss.usermodel.Sheet;
import org.molgenis.oneclickimporter.exceptions.EmptySheetException;
/** Creates a list of {@link Sheet}s from an excel file */
public interface ExcelService {
/**
* Builds one or more excel sheets based on a xls or xlsx file
*
* @param file
* @return
* @throws IOException
* @throws InvalidFormatException
*/
List buildExcelSheetsFromFile(final File file)
throws IOException, InvalidFormatException, EmptySheetException;
}