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.
public
String decodeString(String value, int quoteSymbol)
- value: String - string value to be decoded.
- quoteSymbol: int - string quote character.
- returns: Atring - A decoded string.
encodeString
Encodes a string value.
public
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 started from the character linked to this state.
public
Token nextToken(IScanner scanner, ITokenizer tokenizer) throws Exception
- 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.