dxFeed .Net API  7.1.0
dxFeed .Net API library intended to provide market data access for DX clients
com.dxfeed.io.CSVReader Class Reference

Reads data from the stream using Comma-Separated Values (CSV) format. See RFC 4180 for CSV format specification. More...

Inheritance diagram for com.dxfeed.io.CSVReader:
[legend]
Collaboration diagram for com.dxfeed.io.CSVReader:
[legend]

Detailed Description

Reads data from the stream using Comma-Separated Values (CSV) format. See RFC 4180 for CSV format specification.

This reader supports records with arbitrary (variable) number of fields, multiline fields, custom separator and quote characters. It accepts CR, LF and CRLF sequence as record separators.

This reader provides its own buffering but does not perform decoding. The correct way to efficiently read CSV file with UTF-8 encoding is as follows:

CSVReader reader = new CSVReader(new InputStreamReader(new FileInputStream(file), StandardCharsets.UTF_8));
string[] header = reader.readRecord();
List<string[]> records = reader.readAll();
reader.close();

The documentation for this class was generated from the following file: