Class FastMessageFormat
- java.lang.Object
-
- org.apache.sling.engine.impl.request.FastMessageFormat
-
public class FastMessageFormat extends Object
Fast MessageFormat implementation which is not thread-safe. It is based on the assumptions that- most formats do not contain format types and styles
- do not use escaping
- format elements are in order
MessageFormat.
To increase the benefit of this implementation, every instance should be reused as often as possible.
-
-
Constructor Summary
Constructors Constructor Description FastMessageFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringformat(String pattern, Object... arguments)Use this method exactly likeMessageFormat.format(String, Object...).
-
-
-
Method Detail
-
format
public String format(String pattern, Object... arguments)
Use this method exactly likeMessageFormat.format(String, Object...).- Parameters:
pattern- the pattern to usearguments- the objects to format- Returns:
- the string which has been formatted.
- See Also:
MessageFormat.format(String, Object...)
-
-