Class CSVImporter

java.lang.Object
ca.phon.app.csv.CSVImporter

public class CSVImporter extends Object
Class to import CSV files into a Phon project as one or more sessions. All sessions will be imported into the same corpus. If no corpus is specified, a new corpus named "imported" will be created.
  • Constructor Details

    • CSVImporter

      public CSVImporter(Project project, String selectedCorpus)
  • Method Details

    • addListener

      public void addListener(CSVImporterListener csvImporterListener)
    • importCSV

      public void importCSV(String filePath, CSVImportSettings settings) throws IOException
      invalid input: '&' Import a CSV file into the project. The CSV file must be in the format specified by the CSVImportSettings object.
      Parameters:
      filePath - csv file path
      settings - csv import settings
      Throws:
      IOException - if an error occurs while reading the file or writing the session