Package java.io
Class StreamTokenizer
void quoteChar(int ch)
_INSERT_METHOD_SIGNATURE_HERE_
Description:
Specifies that matching pairs of this character delimited string contains in this tokenizer.
When the nextToken method encounters a string constant, the ttype field is set to the string delimiter and the sval field is set to the body of the string.
If a string quote character is encountered, then a string is recognized, consisting of all characters after the string quote character, up to the next occurrence of that same string quote character, or a line terminator, or end of file. The usual escape sequence '\t' is recognized and converted to single character as the string is parsed.
Example
File file = new File("testFile");
InputStream is = new FileInputStream(file);
StreamTokenizer st = new StreamTokenizer(is);
...
st.quoteChar('a');
The example above defines the 'a' character as string quote character.