Class CSVLoader

java.lang.Object
fr.inria.rules.integraal.io.csv.CSVLoader

public class CSVLoader extends Object
Loader for CSV files.
  • Method Details

    • parseAndLoad

      public static FactBase parseAndLoad(FactBase f, File rlsFile, boolean encode)
      Loads atoms from CSV files into a given factbase.
      Parameters:
      f - factbase
      rlsFile - RLS configuration file to parseAll
      encode - a boolean true iff the CSV has to be encoded first
      Returns:
      the factbase with loaded atoms
    • parseAndLoad

      public static FactBase parseAndLoad(FactBase factbase, File rlsFile, char separator, String prefix, int headerSize, Boolean encode_flag)
      Loads atoms from CSV files into a given factbase.
      Parameters:
      factbase - factbase to load with parsed files
      rlsFile - input RLS file
      separator - for CSV
      prefix - for CSV
      headerSize - for CSV
      encode_flag - true iff the data must be encoded
      Returns:
      the factbase with loaded atoms