Example #1
0
 private FastCsvReader(TextReader reader, FastCsvReaderSettings settings, bool disposed)
 {
     if (reader == null)
      {
     throw new ArgumentNullException("reader");
      }
      settings = settings ?? new FastCsvReaderSettings();
      this.reader = reader;
      this.separator = settings.FieldDelimiter;
      this.quotation = settings.QuotationCharacter;
      this.disposed = disposed;
      FillBuffer();
 }
Example #2
0
 /// <summary>
 /// Initializes a new <see cref="FastCsvReader"/> with the specified path to reading file.
 /// </summary>
 /// <param name="reader">The reader.</param>
 /// <param name="settings">The settings.</param>
 public FastCsvReader(TextReader reader, FastCsvReaderSettings settings = null)
     : this(reader, settings, true)
 {
 }
Example #3
0
 /// <summary>
 /// Initializes a new <see cref="FastCsvReader"/> with the specified file stream.
 /// </summary>
 /// <param name="stream">The file stream.</param>
 /// <param name="settings">The settings.</param>
 public FastCsvReader(Stream stream, FastCsvReaderSettings settings = null)
     : this(new StreamReader(stream), settings, false)
 {
 }
Example #4
0
 /// <summary>
 /// Initializes a new <see cref="FastCsvReader"/> with the specified file stream.
 /// </summary>
 /// <param name="stream">The file stream.</param>
 /// <param name="encoding">The encoding.</param>
 /// <param name="settings">The settings.</param>
 public FastCsvReader(Stream stream, Encoding encoding, FastCsvReaderSettings settings = null)
     : this(new StreamReader(stream, encoding), settings, false)
 {
 }
Example #5
0
 /// <summary>
 /// Initializes a new <see cref="FastCsvReader"/> with the specified path to reading file.
 /// </summary>
 /// <param name="path">The path to file to read.</param>
 /// <param name="settings">The settings.</param>
 public FastCsvReader(string path, FastCsvReaderSettings settings = null)
     : this(new StreamReader(path), settings, false)
 {
 }