|
|||||||||
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 java.lang.String |
clientSideEncoding(java.util.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(java.util.Locale locale)
Returns the decomposition flag for the specified locale |
static java.lang.String |
defaultUIEncoding()
|
static java.lang.String |
fileEncoding(java.util.Locale locale)
Returns the file encoding string for the specified locale |
static int |
getStringWidth(java.lang.String string,
java.util.Locale locale)
Returns the width of the input string for the specified locale |
static boolean |
isSupportedInEM(java.util.Locale locale)
Check if the specified locale is supported by EM |
static java.lang.String |
mimeAttachmentEncoding(java.util.Locale locale)
Returns the MIME HTML attachment encoding string for the specified locale |
static java.lang.String |
mimeBodyCharset(java.util.Locale locale)
Returns the MIME body charset string for the specified locale |
static java.lang.String |
mimeBodyEncoding(java.util.Locale locale)
Returns the MIME body encoding string for the specified locale |
static java.lang.String |
mimeHeaderEncoding(java.util.Locale locale)
Returns the MIME header encoding string for the specified locale |
static java.lang.String |
normalizeCatalog(java.lang.String string,
java.util.Locale locale)
Normalizes characters in the catalog string for the specified locale |
static java.lang.String |
normalizeDate(java.lang.String string,
java.util.Locale locale)
Normalizes the input date format string for the specified locale |
static java.lang.String |
normalizeMailText(java.lang.String string,
java.util.Locale locale)
Normalizes the input mail text string for the specified locale |
static java.lang.String |
normalizeMoney(java.lang.String string,
java.util.Locale locale)
Normalizes the input money format string for the specified locale |
static java.lang.String |
normalizeNumber(java.lang.String string,
java.util.Locale locale)
Normalizes the input decimal string for the specified locale |
static java.lang.String |
readFileText(java.lang.String string,
java.util.Locale locale)
Normalizes the input read text string for the specified locale |
static java.lang.String |
uiEncoding(java.util.Locale locale)
Returns the UI encoding string for the specified locale |
static int |
widthInBytes(java.lang.String string,
java.util.Locale locale)
Returns the number of bytes of the input string for the specified locale using its default encoding |
static java.lang.String |
writeFileText(java.lang.String string,
java.lang.String encoding,
java.util.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 java.lang.String uiEncoding(java.util.Locale locale)
locale
- the locale to get the encoding string of
public static java.lang.String defaultUIEncoding()
public static java.lang.String fileEncoding(java.util.Locale locale)
locale
- the locale to get the encoding string of
public static java.lang.String mimeHeaderEncoding(java.util.Locale locale)
locale
- the locale to get the encoding string of
public static java.lang.String mimeBodyEncoding(java.util.Locale locale)
locale
- the locale to get the encoding string of
public static java.lang.String mimeBodyCharset(java.util.Locale locale)
locale
- the locale to get the encoding string of
public static java.lang.String mimeAttachmentEncoding(java.util.Locale locale)
locale
- the locale to get the encoding string of
public static java.lang.String clientSideEncoding(java.util.Locale locale)
locale
- the locale to get the encoding string of
public static java.lang.String normalizeCatalog(java.lang.String string, java.util.Locale locale)
string
- the string to be normalizedlocale
- the locale to normalze the string for
public static java.lang.String normalizeDate(java.lang.String string, java.util.Locale locale)
string
- the string to be normalizedlocale
- the locale to normalze the string for
public static java.lang.String normalizeNumber(java.lang.String string, java.util.Locale locale)
string
- the string to be normalizedlocale
- the locale to normalze the string for
public static java.lang.String normalizeMoney(java.lang.String string, java.util.Locale locale)
string
- the string to be normalizedlocale
- the locale to normalze the string for
public static java.lang.String readFileText(java.lang.String string, java.util.Locale locale)
string
- the string to be normalizedlocale
- the locale to normalze the string for
public static java.lang.String writeFileText(java.lang.String string, java.lang.String encoding, java.util.Locale locale)
string
- the string to be normalizedencoding
- the encoding to write the file textlocale
- the locale to normalze the string for
public static java.lang.String normalizeMailText(java.lang.String string, java.util.Locale locale)
string
- the string to be normalizedlocale
- the locale to normalze the string for
public static int widthInBytes(java.lang.String string, java.util.Locale locale)
string
- the string to get the number of byteslocale
- the locale whose default encoding is to be used
public static int getStringWidth(java.lang.String string, java.util.Locale locale)
string
- the string to get the width oflocale
- the locale for calculating width
public static int decompositionFlag(java.util.Locale locale)
locale
- the locale to get the decomposition flag for
public static boolean isSupportedInEM(java.util.Locale locale)
locale
- the locale to be checked
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |