public class Locale
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.regex.Pattern |
PATTERN |
(package private) java.util.Map<java.lang.String,java.lang.String> |
properties |
private static com.google.common.base.Splitter |
SPLITTER |
private boolean |
unicode |
Constructor and Description |
---|
Locale() |
Modifier and Type | Method and Description |
---|---|
private void |
checkUnicode() |
java.lang.String |
formatMessage(java.lang.String translateKey,
java.lang.Object[] parameters) |
boolean |
hasKey(java.lang.String key) |
boolean |
isUnicode() |
private void |
loadLocaleData(java.io.InputStream inputStreamIn) |
private void |
loadLocaleData(java.util.List<IResource> resourcesList) |
void |
loadLocaleDataFiles(IResourceManager resourceManager,
java.util.List<java.lang.String> languageList) |
private java.lang.String |
translateKeyPrivate(java.lang.String translateKey) |
private static final com.google.common.base.Splitter SPLITTER
private static final java.util.regex.Pattern PATTERN
java.util.Map<java.lang.String,java.lang.String> properties
private boolean unicode
public void loadLocaleDataFiles(IResourceManager resourceManager, java.util.List<java.lang.String> languageList)
public boolean isUnicode()
private void checkUnicode()
private void loadLocaleData(java.util.List<IResource> resourcesList) throws java.io.IOException
java.io.IOException
private void loadLocaleData(java.io.InputStream inputStreamIn) throws java.io.IOException
java.io.IOException
private java.lang.String translateKeyPrivate(java.lang.String translateKey)
public java.lang.String formatMessage(java.lang.String translateKey, java.lang.Object[] parameters)
public boolean hasKey(java.lang.String key)