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(); }
/// <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) { }
/// <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) { }
/// <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) { }
/// <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) { }