- Index
- »
- util
- »
- CsvOutStream
type
CsvOutStream
@Js
class CsvOutStream : OutStream
CsvOutStream is used to write delimiter-separated values as specified by RFC 4180. Format details:
- rows are delimited by a newline
- cells are separated by
delimiterchar - cells containing the delimiter,
"double quote, or newline are quoted; quotes are escaped as""
Also see CsvInStream.
constructors
| make |
Wrap the underlying output stream. |
|---|
fields
| delimiter |
Delimiter character; defaults to comma. |
|---|
methods
| isQuoteRequired |
Return if the given cell string contains |
|---|---|
| writeCell |
Write a single cell. |
| writeRow |
Write the row of cells with the configured delimiter. |
Slot Details
delimiter
Int delimiter := 44
Delimiter character; defaults to comma.
isQuoteRequired
make
new make(OutStream out)
Wrap the underlying output stream.
writeCell
virtual This writeCell(Str cell)
Write a single cell. If isQuoteRequired returns true, then quote it.