String positional parsing in Java
21:53 14 Feb 2012

I'm trying to figure out how to parse a long string and, based on some index and length, get that value converted to a specific data type the fastest possible because I need to process about 1000 strings/second. To be clear, I need something like this

String initial = "4239898 mdj 8746bbbrts675420120214";

Someclass parser = new Someclass(initial);

Date date = parser.getDate(26,8);

So date is parsed using the substring from position 26 to 26+8

So basically, I would like to know if is there already a class which helps me to accomplish this or if any one could suggest some fast algorithm.

Thanks in advance

java string parsing