Class CsvStringRecordReader

java.lang.Object
org.refcodes.tabular.CsvRecordReader<String>
org.refcodes.tabular.CsvStringRecordReader
All Implemented Interfaces:
AutoCloseable, Iterable<Record<String>>, Iterator<Record<String>>, org.refcodes.io.RowReader<String[]>, org.refcodes.mixin.DelimiterAccessor, org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<org.refcodes.textual.CsvMixin>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterProperty, org.refcodes.mixin.TrimAccessor, org.refcodes.mixin.TrimAccessor.TrimBuilder<org.refcodes.textual.CsvMixin>, org.refcodes.mixin.TrimAccessor.TrimMutator, org.refcodes.mixin.TrimAccessor.TrimProperty, HeaderAccessor<String>, RecordReader<String>, Records<String>, org.refcodes.textual.CsvEscapeModeAccessor, org.refcodes.textual.CsvEscapeModeAccessor.CsvEscapeModeBuilder<org.refcodes.textual.CsvMixin>, org.refcodes.textual.CsvEscapeModeAccessor.CsvEscapeModeMutator, org.refcodes.textual.CsvEscapeModeAccessor.CsvEscapeModeProperty, org.refcodes.textual.CsvMixin

public class CsvStringRecordReader extends CsvRecordReader<String>
THis implementation of the CsvRecordReader assumes that for ease of use we just want to handle String columns.
  • Constructor Details

    • CsvStringRecordReader

      public CsvStringRecordReader(Header<String> aHeader, File aCsvFile, boolean isStrict) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(Header<String> aHeader, File aCsvFile, char aCsvSeparator, boolean isStrict) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(Header<String> aHeader, File aCsvFile, char aCsvSeparator) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(Header<String> aHeader, File aCsvFile, Charset aEncoding, boolean isStrict) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(Header<String> aHeader, File aCsvFile, Charset aEncoding, char aCsvSeparator, boolean isStrict) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(Header<String> aHeader, File aCsvFile, Charset aEncoding, char aCsvSeparator) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(Header<String> aHeader, File aCsvFile, Charset aEncoding) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(Header<String> aHeader, File aCsvFile) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(Header<String> aHeader, InputStream aCsvInputStream, boolean isStrict) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(Header<String> aHeader, InputStream aCsvInputStream, char aCsvDelimiter) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(Header<String> aHeader, InputStream aCsvInputStream, Charset aEncoding, boolean isStrict) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(Header<String> aHeader, InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(Header<String> aHeader, InputStream aCsvInputStream, Charset aEncoding) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(Header<String> aHeader, InputStream aCsvInputStream) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(File aCsvFile, boolean isStrict, String... aHeader) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvFile - The CSV File which to parse.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      aHeader - The String elements representing the Header to use when parsing the input.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      ZipException - thrown in case processing a ZIP compressed file encountered problems.
    • CsvStringRecordReader

      public CsvStringRecordReader(File aCsvFile, char aCsvSeparator, boolean isStrict, String... aHeader) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvFile - The CSV File which to parse.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      aHeader - The String elements representing the Header to use when parsing the input.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      ZipException - thrown in case processing a ZIP compressed file encountered problems.
    • CsvStringRecordReader

      public CsvStringRecordReader(File aCsvFile, char aCsvSeparator, String... aHeader) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvFile - The CSV File which to parse.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      aHeader - The String elements representing the Header to use when parsing the input.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      ZipException - thrown in case processing a ZIP compressed file encountered problems.
    • CsvStringRecordReader

      public CsvStringRecordReader(File aCsvFile, Charset aEncoding, boolean isStrict, String... aHeader) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      aHeader - The String elements representing the Header to use when parsing the input.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      ZipException - thrown in case processing a ZIP compressed file encountered problems.
    • CsvStringRecordReader

      public CsvStringRecordReader(File aCsvFile, Charset aEncoding, char aCsvSeparator, boolean isStrict, String... aHeader) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      aHeader - The String elements representing the Header to use when parsing the input.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      ZipException - thrown in case processing a ZIP compressed file encountered problems.
    • CsvStringRecordReader

      public CsvStringRecordReader(File aCsvFile, Charset aEncoding, char aCsvSeparator, String... aHeader) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      aHeader - The String elements representing the Header to use when parsing the input.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      ZipException - thrown in case processing a ZIP compressed file encountered problems.
    • CsvStringRecordReader

      public CsvStringRecordReader(File aCsvFile, Charset aEncoding, String... aHeader) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      aHeader - The String elements representing the Header to use when parsing the input.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      ZipException - thrown in case processing a ZIP compressed file encountered problems.
    • CsvStringRecordReader

      public CsvStringRecordReader(File aCsvFile, String... aHeader) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvFile - The CSV File which to parse.
      aHeader - The String elements representing the Header to use when parsing the input.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      ZipException - thrown in case processing a ZIP compressed file encountered problems.
    • CsvStringRecordReader

      public CsvStringRecordReader(InputStream aCsvInputStream, boolean isStrict, String... aHeader) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvInputStream - The CSV InputStream which to parse.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      aHeader - The String elements representing the Header to use when parsing the input.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • CsvStringRecordReader

      public CsvStringRecordReader(InputStream aCsvInputStream, char aCsvDelimiter, String... aHeader) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvInputStream - The CSV InputStream which to parse.
      aCsvDelimiter - The delimiter being expected for the CSV input stream.
      aHeader - The String elements representing the Header to use when parsing the input.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • CsvStringRecordReader

      public CsvStringRecordReader(InputStream aCsvInputStream, Charset aEncoding, boolean isStrict, String... aHeader) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvInputStream - The CSV InputStream which to parse.
      aEncoding - The Charset for the character encoding to use.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      aHeader - The String elements representing the Header to use when parsing the input.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • CsvStringRecordReader

      public CsvStringRecordReader(InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter, String... aHeader) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvInputStream - The CSV InputStream which to parse.
      aEncoding - the encoding
      aCsvDelimiter - The delimiter being expected for the CSV input stream.
      aHeader - The String elements representing the Header to use when parsing the input.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • CsvStringRecordReader

      public CsvStringRecordReader(InputStream aCsvInputStream, Charset aEncoding, String... aHeader) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvInputStream - The CSV InputStream which to parse.
      aEncoding - The Charset for the character encoding to use.
      aHeader - The String elements representing the Header to use when parsing the input.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • CsvStringRecordReader

      public CsvStringRecordReader(InputStream aCsvInputStream, String... aHeader) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aCsvInputStream - The CSV InputStream which to parse.
      aHeader - The String elements representing the Header to use when parsing the input.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • CsvStringRecordReader

      public CsvStringRecordReader(String[] aHeader, File aCsvFile, boolean isStrict) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvFile - The CSV File which to parse.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      ZipException - thrown in case processing a ZIP compressed file encountered problems.
    • CsvStringRecordReader

      public CsvStringRecordReader(String[] aHeader, File aCsvFile, char aCsvSeparator, boolean isStrict) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvFile - The CSV File which to parse.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      ZipException - thrown in case processing a ZIP compressed file encountered problems.
    • CsvStringRecordReader

      public CsvStringRecordReader(String[] aHeader, File aCsvFile, char aCsvSeparator) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvFile - The CSV File which to parse.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      ZipException - thrown in case processing a ZIP compressed file encountered problems.
    • CsvStringRecordReader

      public CsvStringRecordReader(String[] aHeader, File aCsvFile, Charset aEncoding, boolean isStrict) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      ZipException - thrown in case processing a ZIP compressed file encountered problems.
    • CsvStringRecordReader

      public CsvStringRecordReader(String[] aHeader, File aCsvFile, Charset aEncoding, char aCsvSeparator, boolean isStrict) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      ZipException - thrown in case processing a ZIP compressed file encountered problems.
    • CsvStringRecordReader

      public CsvStringRecordReader(String[] aHeader, File aCsvFile, Charset aEncoding, char aCsvSeparator) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      aCsvSeparator - The delimiter being expected for the CSV input stream.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      ZipException - thrown in case processing a ZIP compressed file encountered problems.
    • CsvStringRecordReader

      public CsvStringRecordReader(String[] aHeader, File aCsvFile, Charset aEncoding) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvFile - The CSV File which to parse.
      aEncoding - The Charset for the character encoding to use.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      ZipException - thrown in case processing a ZIP compressed file encountered problems.
    • CsvStringRecordReader

      public CsvStringRecordReader(String[] aHeader, File aCsvFile) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvFile - The CSV File which to parse.
      Throws:
      FileNotFoundException - the file not found exception
      IOException - in case there were problems working with the given File.
      ZipException - thrown in case processing a ZIP compressed file encountered problems.
    • CsvStringRecordReader

      public CsvStringRecordReader(String[] aHeader, InputStream aCsvInputStream, boolean isStrict) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvInputStream - The CSV InputStream which to parse.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • CsvStringRecordReader

      public CsvStringRecordReader(String[] aHeader, InputStream aCsvInputStream, char aCsvDelimiter) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvInputStream - The CSV InputStream which to parse.
      aCsvDelimiter - The delimiter being expected for the CSV input stream.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • CsvStringRecordReader

      public CsvStringRecordReader(String[] aHeader, InputStream aCsvInputStream, Charset aEncoding, boolean isStrict) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvInputStream - The CSV InputStream which to parse.
      aEncoding - The Charset for the character encoding to use.
      isStrict - When true, then parsing will abort with an exception in case of parsing problems, else parsing is gracefully continued and erroneous records are skipped. The error count CsvRecordReader.getErroneousRecordCount() is incremented by each erroneous Record.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • CsvStringRecordReader

      public CsvStringRecordReader(String[] aHeader, InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvInputStream - The CSV InputStream which to parse.
      aEncoding - the encoding
      aCsvDelimiter - The delimiter being expected for the CSV input stream.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • CsvStringRecordReader

      public CsvStringRecordReader(String[] aHeader, InputStream aCsvInputStream, Charset aEncoding) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvInputStream - The CSV InputStream which to parse.
      aEncoding - The Charset for the character encoding to use.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • CsvStringRecordReader

      public CsvStringRecordReader(String[] aHeader, InputStream aCsvInputStream) throws IOException
      Constructs a CsvStringRecordReader with the given parameters. Internally Column instances are generated according to the keys found in the CSV top line. The Column instances are required to convert the CSV line values. If a Header is provided, then the Header is used for generating the Column instances instead of the top line of the CSV file.
      Parameters:
      aHeader - The String elements representing the Header to use when parsing the input.
      aCsvInputStream - The CSV InputStream which to parse.
      Throws:
      IOException - in case there were problems working with the given InputStream.
    • CsvStringRecordReader

      public CsvStringRecordReader(File aCsvFile, boolean isStrict) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(File aCsvFile, char aCsvSeparator, boolean isStrict) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(File aCsvFile, char aCsvSeparator) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(File aCsvFile) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(InputStream aCsvInputStream, boolean isStrict) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(InputStream aCsvInputStream, char aCsvDelimiter, boolean isStrict) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(InputStream aCsvInputStream, char aCsvDelimiter) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(InputStream aCsvInputStream) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(File aCsvFile, Charset aEncoding, boolean isStrict) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(File aCsvFile, Charset aEncoding, char aCsvSeparator, boolean isStrict) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(File aCsvFile, Charset aEncoding, char aCsvSeparator) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(File aCsvFile, Charset aEncoding) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(InputStream aCsvInputStream, Charset aEncoding, boolean isStrict) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter, boolean isStrict) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(InputStream aCsvInputStream, Charset aEncoding, char aCsvDelimiter) throws IOException
      Throws:
      IOException
    • CsvStringRecordReader

      public CsvStringRecordReader(InputStream aCsvInputStream, Charset aEncoding) throws IOException
      Throws:
      IOException
  • Method Details