Class CSVStreamWriter
The class writes a CSV file.
Note: when this class is used with sensitive data, be careful in persisting sensitive information to disk.
| Constructor | Description |
|---|---|
| CSVStreamWriter(Writer) | Create a new CSVStreamWriter with a ',' as separator and '"' as quote character. |
| CSVStreamWriter(Writer, String) | Create a new CSVStreamWriter with the specified separator and '"' as quote character. |
| CSVStreamWriter(Writer, String, String) | Create a new CSVStreamWriter with the specified separator and the specified quote character. |
| Method | Description |
|---|---|
| close() | Closes the underlying writer. |
| writeNext(String...) | Write a single line to the CSV file. |
assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values
- CSVStreamWriter(writer: Writer)
Create a new CSVStreamWriter with a ',' as separator and '"' as quote character.
Parameters:
- writer - the writer to use.
- CSVStreamWriter(writer: Writer, separator: String)
Create a new CSVStreamWriter with the specified separator and '"' as quote character.
Parameters:
- writer - the writer to use.
- separator - the separator to use.
- CSVStreamWriter(writer: Writer, separator: String, quote: String)
Create a new CSVStreamWriter with the specified separator and the specified quote character.
Parameters:
- writer - the writer to use.
- separator - the separator to use.
- quote - the quote to use.
- close(): void
Closes the underlying writer.
- writeNext(line: String...): void
Write a single line to the CSV file.
Parameters:
- line - an array of strings.