Parsing a fixed-width formatted file in Java
I would use a flat file parser like flatworm instead of reinventing the wheel: it has a clean API, is simple to use, has decent error handling and a simple file format descriptor. Another option is jFFP but I prefer the first one.
I've played arround with fixedformat4j and it is quite nice. Easy to configure converters and the like.