public class StringFormatToMessageFormatConverter extends Object implements BundleFormatConverter
BundleFormatConverter to convert Formatter
syntax to a MessageFormat syntax.
Created: 05/05/11
|
| Constructor and Description |
|---|
StringFormatToMessageFormatConverter() |
| Modifier and Type | Method and Description |
|---|---|
String |
convert(String value)
Convert format syntax to an other from
value. |
protected String |
escapeQuoteChar(String value)
Escape ' char with '', needed by
MessageFormat. |
protected static Pattern PATTERN
public StringFormatToMessageFormatConverter()
public String convert(String value)
BundleFormatConvertervalue.convert in interface BundleFormatConvertervalue - message with some format placeholders to convertprotected String escapeQuoteChar(String value)
MessageFormat.value - Message that contains 'Copyright © 2007–2013 CodeLutin. All rights reserved.