Package java.io
Class StreamTokenizer
void wordChars(int low, int hi)
_INSERT_METHOD_SIGNATURE_HERE_
Description:
This method specifies that all characters c in the range low ≤ c ≤ high are word constituents. A word token consists of a word constituent followed by zero or more word constituents or number constituents.
Example
File file = new File("testFile");
InputStream is = new FileInputStream(file);
StreamTokenizer st = new StreamTokenizer(is);
...
st.wordChars('a','c');
All characters between 'a' and 'c' characters and also the 'a' and 'c' characters regarded as word constituents after the wordChars method call.