All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.molgenis.oneclickimporter.service.ExcelService Maven / Gradle / Ivy

Go to download

Plugin module for importing data with automatic metadata determination (not part of the importer framework).

There is a newer version: 8.4.5
Show newest version
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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy