oh. This implementation is already finished. MessageFormat class defines skip() code that is different for each format type. 

But using skip length table sounds a good idea.