Java Code Examples for sun.util.locale.provider.LocaleServiceProviderPool#getAvailableLocales()

The following examples show how to use sun.util.locale.provider.LocaleServiceProviderPool#getAvailableLocales() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Bug6989440.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void run() {
    try {
        LocaleServiceProviderPool pool = LocaleServiceProviderPool.getPool(cls);
        pool.getAvailableLocales();
    } catch (Exception e) {
        System.out.println(e);
        e.printStackTrace();
        failed = true;
    }
}
 
Example 2
Source File: DateFormat.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns an array of all locales for which the
 * <code>get*Instance</code> methods of this class can return
 * localized instances.
 * The returned array represents the union of locales supported by the Java
 * runtime and by installed
 * {@link java.text.spi.DateFormatProvider DateFormatProvider} implementations.
 * It must contain at least a <code>Locale</code> instance equal to
 * {@link java.util.Locale#US Locale.US}.
 *
 * @return An array of locales for which localized
 *         <code>DateFormat</code> instances are available.
 */
public static Locale[] getAvailableLocales()
{
    LocaleServiceProviderPool pool =
        LocaleServiceProviderPool.getPool(DateFormatProvider.class);
    return pool.getAvailableLocales();
}
 
Example 3
Source File: BreakIterator.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns an array of all locales for which the
 * <code>get*Instance</code> methods of this class can return
 * localized instances.
 * The returned array represents the union of locales supported by the Java
 * runtime and by installed
 * {@link java.text.spi.BreakIteratorProvider BreakIteratorProvider} implementations.
 * It must contain at least a <code>Locale</code>
 * instance equal to {@link java.util.Locale#US Locale.US}.
 *
 * @return An array of locales for which localized
 *         <code>BreakIterator</code> instances are available.
 */
public static synchronized Locale[] getAvailableLocales()
{
    LocaleServiceProviderPool pool =
        LocaleServiceProviderPool.getPool(BreakIteratorProvider.class);
    return pool.getAvailableLocales();
}
 
Example 4
Source File: BreakIterator.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns an array of all locales for which the
 * <code>get*Instance</code> methods of this class can return
 * localized instances.
 * The returned array represents the union of locales supported by the Java
 * runtime and by installed
 * {@link java.text.spi.BreakIteratorProvider BreakIteratorProvider} implementations.
 * It must contain at least a <code>Locale</code>
 * instance equal to {@link java.util.Locale#US Locale.US}.
 *
 * @return An array of locales for which localized
 *         <code>BreakIterator</code> instances are available.
 */
public static synchronized Locale[] getAvailableLocales()
{
    LocaleServiceProviderPool pool =
        LocaleServiceProviderPool.getPool(BreakIteratorProvider.class);
    return pool.getAvailableLocales();
}
 
Example 5
Source File: BreakIterator.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns an array of all locales for which the
 * <code>get*Instance</code> methods of this class can return
 * localized instances.
 * The returned array represents the union of locales supported by the Java
 * runtime and by installed
 * {@link java.text.spi.BreakIteratorProvider BreakIteratorProvider} implementations.
 * It must contain at least a <code>Locale</code>
 * instance equal to {@link java.util.Locale#US Locale.US}.
 *
 * @return An array of locales for which localized
 *         <code>BreakIterator</code> instances are available.
 */
public static synchronized Locale[] getAvailableLocales()
{
    LocaleServiceProviderPool pool =
        LocaleServiceProviderPool.getPool(BreakIteratorProvider.class);
    return pool.getAvailableLocales();
}
 
Example 6
Source File: DateFormat.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns an array of all locales for which the
 * <code>get*Instance</code> methods of this class can return
 * localized instances.
 * The returned array represents the union of locales supported by the Java
 * runtime and by installed
 * {@link java.text.spi.DateFormatProvider DateFormatProvider} implementations.
 * It must contain at least a <code>Locale</code> instance equal to
 * {@link java.util.Locale#US Locale.US}.
 *
 * @return An array of locales for which localized
 *         <code>DateFormat</code> instances are available.
 */
public static Locale[] getAvailableLocales()
{
    LocaleServiceProviderPool pool =
        LocaleServiceProviderPool.getPool(DateFormatProvider.class);
    return pool.getAvailableLocales();
}
 
Example 7
Source File: DateFormat.java    From Java8CN with Apache License 2.0 3 votes vote down vote up
/**
 * Returns an array of all locales for which the
 * <code>get*Instance</code> methods of this class can return
 * localized instances.
 * The returned array represents the union of locales supported by the Java
 * runtime and by installed
 * {@link java.text.spi.DateFormatProvider DateFormatProvider} implementations.
 * It must contain at least a <code>Locale</code> instance equal to
 * {@link java.util.Locale#US Locale.US}.
 *
 * @return An array of locales for which localized
 *         <code>DateFormat</code> instances are available.
 */
public static Locale[] getAvailableLocales()
{
    LocaleServiceProviderPool pool =
        LocaleServiceProviderPool.getPool(DateFormatProvider.class);
    return pool.getAvailableLocales();
}
 
Example 8
Source File: BreakIterator.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns an array of all locales for which the
 * <code>get*Instance</code> methods of this class can return
 * localized instances.
 * The returned array represents the union of locales supported by the Java
 * runtime and by installed
 * {@link java.text.spi.BreakIteratorProvider BreakIteratorProvider} implementations.
 * It must contain at least a <code>Locale</code>
 * instance equal to {@link java.util.Locale#US Locale.US}.
 *
 * @return An array of locales for which localized
 *         <code>BreakIterator</code> instances are available.
 */
public static synchronized Locale[] getAvailableLocales()
{
    LocaleServiceProviderPool pool =
        LocaleServiceProviderPool.getPool(BreakIteratorProvider.class);
    return pool.getAvailableLocales();
}
 
Example 9
Source File: Collator.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns an array of all locales for which the
 * <code>getInstance</code> methods of this class can return
 * localized instances.
 * The returned array represents the union of locales supported
 * by the Java runtime and by installed
 * {@link java.text.spi.CollatorProvider CollatorProvider} implementations.
 * It must contain at least a Locale instance equal to
 * {@link java.util.Locale#US Locale.US}.
 *
 * @return An array of locales for which localized
 *         <code>Collator</code> instances are available.
 */
public static synchronized Locale[] getAvailableLocales() {
    LocaleServiceProviderPool pool =
        LocaleServiceProviderPool.getPool(CollatorProvider.class);
    return pool.getAvailableLocales();
}
 
Example 10
Source File: DateFormatSymbols.java    From jdk8u-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns an array of all locales for which the
 * <code>getInstance</code> methods of this class can return
 * localized instances.
 * The returned array represents the union of locales supported by the
 * Java runtime and by installed
 * {@link java.text.spi.DateFormatSymbolsProvider DateFormatSymbolsProvider}
 * implementations.  It must contain at least a <code>Locale</code>
 * instance equal to {@link java.util.Locale#US Locale.US}.
 *
 * @return An array of locales for which localized
 *         <code>DateFormatSymbols</code> instances are available.
 * @since 1.6
 */
public static Locale[] getAvailableLocales() {
    LocaleServiceProviderPool pool=
        LocaleServiceProviderPool.getPool(DateFormatSymbolsProvider.class);
    return pool.getAvailableLocales();
}
 
Example 11
Source File: Collator.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns an array of all locales for which the
 * <code>getInstance</code> methods of this class can return
 * localized instances.
 * The returned array represents the union of locales supported
 * by the Java runtime and by installed
 * {@link java.text.spi.CollatorProvider CollatorProvider} implementations.
 * It must contain at least a Locale instance equal to
 * {@link java.util.Locale#US Locale.US}.
 *
 * @return An array of locales for which localized
 *         <code>Collator</code> instances are available.
 */
public static synchronized Locale[] getAvailableLocales() {
    LocaleServiceProviderPool pool =
        LocaleServiceProviderPool.getPool(CollatorProvider.class);
    return pool.getAvailableLocales();
}
 
Example 12
Source File: DecimalFormatSymbols.java    From jdk8u-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns an array of all locales for which the
 * <code>getInstance</code> methods of this class can return
 * localized instances.
 * The returned array represents the union of locales supported by the Java
 * runtime and by installed
 * {@link java.text.spi.DecimalFormatSymbolsProvider DecimalFormatSymbolsProvider}
 * implementations.  It must contain at least a <code>Locale</code>
 * instance equal to {@link java.util.Locale#US Locale.US}.
 *
 * @return an array of locales for which localized
 *         <code>DecimalFormatSymbols</code> instances are available.
 * @since 1.6
 */
public static Locale[] getAvailableLocales() {
    LocaleServiceProviderPool pool =
        LocaleServiceProviderPool.getPool(DecimalFormatSymbolsProvider.class);
    return pool.getAvailableLocales();
}
 
Example 13
Source File: Collator.java    From jdk8u_jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns an array of all locales for which the
 * <code>getInstance</code> methods of this class can return
 * localized instances.
 * The returned array represents the union of locales supported
 * by the Java runtime and by installed
 * {@link java.text.spi.CollatorProvider CollatorProvider} implementations.
 * It must contain at least a Locale instance equal to
 * {@link java.util.Locale#US Locale.US}.
 *
 * @return An array of locales for which localized
 *         <code>Collator</code> instances are available.
 */
public static synchronized Locale[] getAvailableLocales() {
    LocaleServiceProviderPool pool =
        LocaleServiceProviderPool.getPool(CollatorProvider.class);
    return pool.getAvailableLocales();
}
 
Example 14
Source File: NumberFormat.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns an array of all locales for which the
 * <code>get*Instance</code> methods of this class can return
 * localized instances.
 * The returned array represents the union of locales supported by the Java
 * runtime and by installed
 * {@link java.text.spi.NumberFormatProvider NumberFormatProvider} implementations.
 * It must contain at least a <code>Locale</code> instance equal to
 * {@link java.util.Locale#US Locale.US}.
 *
 * @return An array of locales for which localized
 *         <code>NumberFormat</code> instances are available.
 */
public static Locale[] getAvailableLocales() {
    LocaleServiceProviderPool pool =
        LocaleServiceProviderPool.getPool(NumberFormatProvider.class);
    return pool.getAvailableLocales();
}
 
Example 15
Source File: DecimalFormatSymbols.java    From dragonwell8_jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns an array of all locales for which the
 * <code>getInstance</code> methods of this class can return
 * localized instances.
 * The returned array represents the union of locales supported by the Java
 * runtime and by installed
 * {@link java.text.spi.DecimalFormatSymbolsProvider DecimalFormatSymbolsProvider}
 * implementations.  It must contain at least a <code>Locale</code>
 * instance equal to {@link java.util.Locale#US Locale.US}.
 *
 * @return an array of locales for which localized
 *         <code>DecimalFormatSymbols</code> instances are available.
 * @since 1.6
 */
public static Locale[] getAvailableLocales() {
    LocaleServiceProviderPool pool =
        LocaleServiceProviderPool.getPool(DecimalFormatSymbolsProvider.class);
    return pool.getAvailableLocales();
}
 
Example 16
Source File: NumberFormat.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns an array of all locales for which the
 * <code>get*Instance</code> methods of this class can return
 * localized instances.
 * The returned array represents the union of locales supported by the Java
 * runtime and by installed
 * {@link java.text.spi.NumberFormatProvider NumberFormatProvider} implementations.
 * It must contain at least a <code>Locale</code> instance equal to
 * {@link java.util.Locale#US Locale.US}.
 *
 * @return An array of locales for which localized
 *         <code>NumberFormat</code> instances are available.
 */
public static Locale[] getAvailableLocales() {
    LocaleServiceProviderPool pool =
        LocaleServiceProviderPool.getPool(NumberFormatProvider.class);
    return pool.getAvailableLocales();
}
 
Example 17
Source File: NumberFormat.java    From JDKSourceCode1.8 with MIT License 2 votes vote down vote up
/**
 * Returns an array of all locales for which the
 * <code>get*Instance</code> methods of this class can return
 * localized instances.
 * The returned array represents the union of locales supported by the Java
 * runtime and by installed
 * {@link java.text.spi.NumberFormatProvider NumberFormatProvider} implementations.
 * It must contain at least a <code>Locale</code> instance equal to
 * {@link java.util.Locale#US Locale.US}.
 *
 * @return An array of locales for which localized
 *         <code>NumberFormat</code> instances are available.
 */
public static Locale[] getAvailableLocales() {
    LocaleServiceProviderPool pool =
        LocaleServiceProviderPool.getPool(NumberFormatProvider.class);
    return pool.getAvailableLocales();
}
 
Example 18
Source File: DecimalFormatSymbols.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns an array of all locales for which the
 * <code>getInstance</code> methods of this class can return
 * localized instances.
 * The returned array represents the union of locales supported by the Java
 * runtime and by installed
 * {@link java.text.spi.DecimalFormatSymbolsProvider DecimalFormatSymbolsProvider}
 * implementations.  It must contain at least a <code>Locale</code>
 * instance equal to {@link java.util.Locale#US Locale.US}.
 *
 * @return an array of locales for which localized
 *         <code>DecimalFormatSymbols</code> instances are available.
 * @since 1.6
 */
public static Locale[] getAvailableLocales() {
    LocaleServiceProviderPool pool =
        LocaleServiceProviderPool.getPool(DecimalFormatSymbolsProvider.class);
    return pool.getAvailableLocales();
}
 
Example 19
Source File: NumberFormat.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns an array of all locales for which the
 * <code>get*Instance</code> methods of this class can return
 * localized instances.
 * The returned array represents the union of locales supported by the Java
 * runtime and by installed
 * {@link java.text.spi.NumberFormatProvider NumberFormatProvider} implementations.
 * It must contain at least a <code>Locale</code> instance equal to
 * {@link java.util.Locale#US Locale.US}.
 *
 * @return An array of locales for which localized
 *         <code>NumberFormat</code> instances are available.
 */
public static Locale[] getAvailableLocales() {
    LocaleServiceProviderPool pool =
        LocaleServiceProviderPool.getPool(NumberFormatProvider.class);
    return pool.getAvailableLocales();
}
 
Example 20
Source File: Collator.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns an array of all locales for which the
 * <code>getInstance</code> methods of this class can return
 * localized instances.
 * The returned array represents the union of locales supported
 * by the Java runtime and by installed
 * {@link java.text.spi.CollatorProvider CollatorProvider} implementations.
 * It must contain at least a Locale instance equal to
 * {@link java.util.Locale#US Locale.US}.
 *
 * @return An array of locales for which localized
 *         <code>Collator</code> instances are available.
 */
public static synchronized Locale[] getAvailableLocales() {
    LocaleServiceProviderPool pool =
        LocaleServiceProviderPool.getPool(CollatorProvider.class);
    return pool.getAvailableLocales();
}