Encouraged by this, and the fact I have billions of string to parse, I tried to modify my code to accept StringTokenizer instead of String[]
The only t
Rather than StringTokenizer, you could try the StrTokenizer class from Apache Commons Lang, which I quote:
This class can split a String into many smaller strings. It aims to do a similar job to StringTokenizer, however it offers much more control and flexibility including implementing the ListIterator interface.
Empty tokens may be removed or returned as null.
This sounds like what you need, I think?