|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectariba.util.i18n.LocaleSupport
public final class LocaleSupport
Class LocaleSupport provides functions for I18N, include getting encoding string, normalize text, etc. All function calls are delegated to instance of the specified language support classes.
| Constructor Summary | |
|---|---|
LocaleSupport()
Class constructor. |
|
| Method Summary | |
|---|---|
static String |
clientSideEncoding(Locale locale)
Returns the encoding string for the specified locale to be used for Strings that need to be encoded using the client machine's encoding |
static int |
decompositionFlag(Locale locale)
Returns the decomposition flag for the specified locale |
static String |
defaultUIEncoding()
|
static String |
fileEncoding(Locale locale)
Returns the file encoding string for the specified locale |
static int |
getStringWidth(String string,
Locale locale)
Returns the width of the input string for the specified locale |
static boolean |
isSupportedInEM(Locale locale)
Check if the specified locale is supported by EM |
static String |
mimeAttachmentEncoding(Locale locale)
Returns the MIME HTML attachment encoding string for the specified locale |
static String |
mimeBodyCharset(Locale locale)
Returns the MIME body charset string for the specified locale |
static String |
mimeBodyEncoding(Locale locale)
Returns the MIME body encoding string for the specified locale |
static String |
mimeHeaderEncoding(Locale locale)
Returns the MIME header encoding string for the specified locale |
static String |
normalizeCatalog(String string,
Locale locale)
Normalizes characters in the catalog string for the specified locale |
static String |
normalizeDate(String string,
Locale locale)
Normalizes the input date format string for the specified locale |
static String |
normalizeMailText(String string,
Locale locale)
Normalizes the input mail text string for the specified locale |
static String |
normalizeMoney(String string,
Locale locale)
Normalizes the input money format string for the specified locale |
static String |
normalizeNumber(String string,
Locale locale)
Normalizes the input decimal string for the specified locale |
static String |
readFileText(String string,
Locale locale)
Normalizes the input read text string for the specified locale |
static String |
uiEncoding(Locale locale)
Returns the UI encoding string for the specified locale |
static int |
widthInBytes(String string,
Locale locale)
Returns the number of bytes of the input string for the specified locale using its default encoding |
static String |
writeFileText(String string,
String encoding,
Locale locale)
Normalizes the input write text string for the specified locale |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocaleSupport()
| Method Detail |
|---|
public static String uiEncoding(Locale locale)
locale - the locale to get the encoding string of
public static String defaultUIEncoding()
public static String fileEncoding(Locale locale)
locale - the locale to get the encoding string of
public static String mimeHeaderEncoding(Locale locale)
locale - the locale to get the encoding string of
public static String mimeBodyEncoding(Locale locale)
locale - the locale to get the encoding string of
public static String mimeBodyCharset(Locale locale)
locale - the locale to get the encoding string of
public static String mimeAttachmentEncoding(Locale locale)
locale - the locale to get the encoding string of
public static String clientSideEncoding(Locale locale)
locale - the locale to get the encoding string of
public static String normalizeCatalog(String string,
Locale locale)
string - the string to be normalizedlocale - the locale to normalze the string for
public static String normalizeDate(String string,
Locale locale)
string - the string to be normalizedlocale - the locale to normalze the string for
public static String normalizeNumber(String string,
Locale locale)
string - the string to be normalizedlocale - the locale to normalze the string for
public static String normalizeMoney(String string,
Locale locale)
string - the string to be normalizedlocale - the locale to normalze the string for
public static String readFileText(String string,
Locale locale)
string - the string to be normalizedlocale - the locale to normalze the string for
public static String writeFileText(String string,
String encoding,
Locale locale)
string - the string to be normalizedencoding - the encoding to write the file textlocale - the locale to normalze the string for
public static String normalizeMailText(String string,
Locale locale)
string - the string to be normalizedlocale - the locale to normalze the string for
public static int widthInBytes(String string,
Locale locale)
string - the string to get the number of byteslocale - the locale whose default encoding is to be used
public static int getStringWidth(String string,
Locale locale)
string - the string to get the width oflocale - the locale for calculating width
public static int decompositionFlag(Locale locale)
locale - the locale to get the decomposition flag for
public static boolean isSupportedInEM(Locale locale)
locale - the locale to be checked
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||