|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.carma.model.util.CodePageHelper
public class CodePageHelper
Helper class used to associate locales with codepages that are valid for the given locale.
| Field Summary | |
|---|---|
static java.lang.String |
ARABIC_LANG
|
java.lang.String |
COPYRIGHT
|
static java.lang.String |
DEFAULT_ARABIC_LOCALE
|
static java.lang.String |
DEFAULT_CODE_PAGE
Default host codepage |
| Constructor Summary | |
|---|---|
CodePageHelper()
|
|
| Method Summary | |
|---|---|
static java.util.Locale |
convertStringToLocale(java.lang.String value)
Converts a string representation of a locale (using the format "language_country_variant") into a java Locale object. |
static java.lang.String[] |
getAllCodepages()
Returns the complete set of default codepages for all locales |
static java.lang.String[] |
getCodepagesForLocale(java.util.Locale locale)
Returns the array of default codepages defined for the provided locale |
static java.lang.String[] |
getCodepagesForLocale(java.lang.String locale)
Returns the array of default codepages defined for the provided locale string |
static java.lang.String[] |
getLocales()
List the default locales included in the Default codepage set |
static boolean |
hasCodepagesForLocale(java.lang.String locale)
Returns true if the given locale is included in the default codepage set. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.String COPYRIGHT
public static final java.lang.String DEFAULT_CODE_PAGE
public static final java.lang.String DEFAULT_ARABIC_LOCALE
public static final java.lang.String ARABIC_LANG
| Constructor Detail |
|---|
public CodePageHelper()
| Method Detail |
|---|
public static java.lang.String[] getLocales()
public static java.util.Locale convertStringToLocale(java.lang.String value)
throws java.lang.IllegalArgumentException
value - the string representation of the international locale
java.lang.IllegalArgumentException - The value to convert to a Locale object is not properly
formattedpublic static java.lang.String[] getAllCodepages()
public static java.lang.String[] getCodepagesForLocale(java.util.Locale locale)
locale - the locale to return defined codepages for
public static java.lang.String[] getCodepagesForLocale(java.lang.String locale)
locale - the locale string (formatted XX_YY_ZZ) to return defined codepages for
public static boolean hasCodepagesForLocale(java.lang.String locale)
locale - the locale string (formatted XX_YY_ZZ) to search for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||