Is there a way to read a single character at a time from the input and process it, without tokenizing the vocabulary?
You can use read() from BufferedReader which reads one char at a time.
char