The FastMessageFormat class is a greatly reduced version of the java.text.MessageFormat class. It's also much faster and much less expensive to create, which is especially valuable when it is created and thrown away many times - a common use case in web applications.
The only syntax supported by this class is simple index-based replacement, namely:
some{1}text{0}here{2}andthere
as well as escaping using single quotes. Like MessageFormat, a single quote must be represented using two consecutive single quotes, but the contents of any text between single quotes will not be interpreted. So, the following pattern could be used to include a left bracket:
some'{'text{0}
@version $Name: $ ($Revision: adfrt/faces/adf-faces-api/src/main/java/oracle/adf/view/faces/util/FastMessageFormat.java#0 $) $Date: 10-nov-2005.19:08:37 $
@author The Oracle ADF Faces Team
@todo This class to be made public once we figure out a way to do so.This class is also availble in impl for laf strings.