Extends: AbstractTokenizer
Description
The CsvTokenizer class allows you to implement a tokenizer class for CSV files.
Constructors
Constructs this object with default parameters.
publicCsvTokenizer() throws Exception
Properties
endOfLine
Separator for rows in CSV stream.
privateString _endOfLine = “\n\r”
fieldSeparators
Separator for fields in CSV stream.
privateList_fieldSeparators = List.of(",".codePointAt(0))
quoteSymbols
Character to quote strings.
privateList_quoteSymbols = List.of(""".codePointAt(0))
Instance methods
getFieldSeparators
Gets a list of field separators.
publicListgetFieldSeparators()
- returns: List
- list of field separators
setFieldSeparators
Sets the field separators.
publicvoid setFieldSeparators(Listvalue) throws Exception
- value: List
- list of field separators.
getEndOfLine
Gets the separator for rows in CSV stream.
publicString getEndOfLine()
- returns: String - separator for rows in CSV stream
setEndOfLine
Gets the separator for rows in CSV stream.
publicvoid setEndOfLine(String value)
- value: String - separator for rows in CSV stream.
getQuoteSymbols
Gets the characters to quote strings.
publicListgetQuoteSymbols()
- returns: List
- list of characters to quote strings
setQuoteSymbols
Sets the characters to quote strings.
publicvoid setQuoteSymbols(Listvalue) throws Exception
- value: List
- list of characters to quote strings