public class FastMessageFormat extends Object
The only syntax supported by this class is simple index-based replacement, namely:
some{1}text{0}here{2}andthereUnlike MessageFormat, single quotes are NOT used for escaping. So, the following pattern could be used to include a left bracket:
some{text{0}
Constructor and Description |
---|
FastMessageFormat(String formatString)
Creates a FastMessageFormat based on the given format string.
|
public FastMessageFormat(String formatString)
public String format(Object[] source)
source
- an array of strings (tokens)Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.