HeadingsCSV.parse

Parses CSV data from the provided stream. Parsing ends when an EOF is encountered. As rows are extracted and parsed, they are passed to the provided delegate.

An additional parameter (include_headings) allows the user to specify which columns in the CSV stream are passed to the row delegate. In this way, unnecessary columns can be ignored.

  1. void parse(InputStream stream, RowDg row_dg)
  2. void parse(InputStream stream, cstring[] include_headings, RowDg row_dg)
    class HeadingsCSV

Parameters

stream InputStream

stream to read CSV data from

include_headings cstring[]

list of column headings to be included in the fields passed to the row delegate

row_dg RowDg

delegate to receive parsed rows

Meta