Implements a quote string state object for CSV streams.
Implements: IQuoteState
Description
The CsvQuoteState implements a quote string state object for CSV streams.
Instance methods
decodeString
Decodes a string value.
@override
String? decodeString(String? value, int quoteSymbol)
- value: String? - string value to be decoded.
- quoteSymbol: int - string quote character.
- returns: String? - decoded string.
encodeString
Encodes a string value.
@override
String? encodeString(String? value, int quoteSymbol)
- value: String? - string value to be encoded.
- quoteSymbol: int - string quote character.
- returns: String? - encoded string.
nextToken
Gets the next token from the stream, starting from the character linked to this state.
@override
Token? nextToken(IScanner scanner, ITokenizer? tokenizer)
- scanner: IScanner - textual string to be tokenized.
- tokenizer: ITokenizer? - tokenizer class that controls the process.
- returns: Token? - next token from the top of the stream.