StreamTokenizer
From the
API The StreamTokenizer class takes an input stream and parses it into "tokens", allowing the tokens to be read one at a time.
For example with
String str="A string containing 5 tokens"
If you use StreamTokenizer you 'll get 5 tokens that you may use.
1st token is 'A'
2nd token is 'string'
3rd token is 'containing'
4th token is '5'
5th token is 'tokens'
I Hope it helps!