Exemplo n.º 1
0
        public CsvStream(TextReader inStream, TextWriter outStream, char separatorChar, bool ignoreTrailingSeparatorChar)
        {
            this.inStream = inStream;
            this.outStream = outStream;
            this.separatorChar = separatorChar;
            this.ignoreTrailingSeparatorChar = ignoreTrailingSeparatorChar;
            this.specialChars = ("\"\x0A\x0D" + separatorChar.ToString()).ToCharArray();
            this.lineNbr = 1;

            this.buffer = new CsvStreamBuffer(this);
            this.line = new CsvStreamLine(this, buffer);
            this.buffer.Line = this.line;
        }
Exemplo n.º 2
0
        public CsvStream(TextReader inStream, TextWriter outStream, char separatorChar, bool ignoreTrailingSeparatorChar)
        {
            InStream      = inStream;
            _outStream    = outStream;
            SeparatorChar = separatorChar;
            IgnoreTrailingSeparatorChar = ignoreTrailingSeparatorChar;
            _specialChars = ("\"\x0A\x0D" + separatorChar).ToCharArray();
            LineNbr       = 1;

            _buffer      = new CsvStreamBuffer(this);
            _line        = new CsvStreamLine(this, _buffer);
            _buffer.Line = _line;
        }
Exemplo n.º 3
0
        public CsvStream(TextReader inStream, TextWriter outStream, char separatorChar, bool ignoreTrailingSeparatorChar)
        {
            this.inStream      = inStream;
            this.outStream     = outStream;
            this.separatorChar = separatorChar;
            this.ignoreTrailingSeparatorChar = ignoreTrailingSeparatorChar;
            this.specialChars = ("\"\x0A\x0D" + separatorChar.ToString()).ToCharArray();
            this.lineNbr      = 1;

            this.buffer      = new CsvStreamBuffer(this);
            this.line        = new CsvStreamLine(this, buffer);
            this.buffer.Line = this.line;
        }