Class CsvParametrizedImporter

All Implemented Interfaces:
Serializable, ICommandImporter, IFileImporter, IImporter, IReaderImporter, IRemoteSetImporter

public class CsvParametrizedImporter extends CsvImporter
This class does something interesting and useful. Or not... Columns are numbered starting with 1.
See Also:
  • Constructor Details

    • CsvParametrizedImporter

      public CsvParametrizedImporter(int separatorIndex, int nameColumn, boolean nameMultiColumn, boolean verbose, int base, int Fcolumn, int Dcolumn, int Scolumn, int protocolColumn, int miscParametersColumn)
    • CsvParametrizedImporter

      public CsvParametrizedImporter(String separator, int nameColumn, boolean nameMultiColumn, boolean verbose, int numberBase, int Fcolumn, int Dcolumn, int Scolumn, int protocolColumn, int miscParametersColumn)
  • Method Details

    • process

      public static Collection<org.harctoolbox.girr.Command> process(Reader reader, String separator, int nameColumn, boolean nameMultiColumn, String filename, boolean verbose, int base, int Fcolumn, int Dcolumn, int Scolumn, int protocolColumn, int miscParametersColumn) throws IOException
      Throws:
      IOException
    • main

      public static void main(String[] args)
    • setProtocolColumn

      public void setProtocolColumn(int protocolColumn)
      Parameters:
      protocolColumn - the protocolColumn to set
    • setNumberBase

      public void setNumberBase(int numberBase)
      Parameters:
      numberBase - the numberBase to set
    • setFColumn

      public void setFColumn(int fColumn)
      Parameters:
      fColumn - the fColumn to set
    • setDColumn

      public void setDColumn(int dColumn)
      Parameters:
      dColumn - the dColumn to set
    • setSColumn

      public void setSColumn(int sColumn)
      Parameters:
      sColumn - the sColumn to set
    • load

      public void load(File file, String origin, String charsetName) throws FileNotFoundException, IOException, ParseException, org.harctoolbox.ircore.InvalidArgumentException
      Overrides:
      load in class ReaderImporter
      Throws:
      FileNotFoundException
      IOException
      ParseException
      org.harctoolbox.ircore.InvalidArgumentException
    • load

      public void load(Reader reader, String origin) throws IOException
      Specified by:
      load in interface IReaderImporter
      Specified by:
      load in class ReaderImporter
      Throws:
      IOException - Generic IO error.