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

org.molgenis.oneclickimporter.service.CsvService 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;

public interface CsvService {

  Character CSV_SEPARATOR = ',';

  /**
   * Creates a List with String[] containing the lines of a CSV file Including the header
   *
   * 

Uses the {@link au.com.bytecode.opencsv.CSVReader} which is also used in the {@link * org.molgenis.data.csv.CsvIterator} * * @param file can be a zip or a regular file * @throws IOException if something goes wrong reading the file * @throws org.molgenis.data.MolgenisDataException if validation of the file content fails */ List buildLinesFromFile(File file) throws IOException; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy