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