dxFeed .Net API
5.8.0
dxFeed .Net API library intended to provide market data access for DX clients
|
Writes data to the stream using Comma-Separated Values (CSV) format. See RFC 4180 for CSV format specification. More...
Private Attributes | |
readonly StreamWriter | writer |
readonly char | separator |
readonly char | quote |
bool | needCRLF |
bool | insideRecord |
int | lineNumber = 1 |
int | recordNumber = 1 |
char [] | quoteBuf |
Static Private Attributes | |
static readonly char | CR = '\r' |
static readonly char | LF = '\n' |
static readonly char [] | CRLF = { CR, LF } |
Writes data to the stream using Comma-Separated Values (CSV) format. See RFC 4180 for CSV format specification.
This writer supports records with arbitrary (variable) number of fields, multiline fields, custom separator and quote characters. It uses CRLF sequence to separate records.
This writer does not provide buffering of any sort and does not perform encoding. The correct way to efficiently write CSV file with UTF-8 encoding is as follows:
CSVWriter writer = new CSVWriter(new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8))); writer.writeRecord(header); writer.writeAll(records); writer.close();
|
staticprivate |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |