src/java.base/share/classes/sun/util/resources/LocaleData.java

Print this page
rev 10556 : 8038436: Re-examine the mechanism to determine available localedata and cldrdata
Reviewed-by:


  33  * of a License Agreement between Taligent and Sun. This technology
  34  * is protected by multiple US and International patents.
  35  *
  36  * This notice and attribution to Taligent may not be removed.
  37  * Taligent is a registered trademark of Taligent, Inc.
  38  *
  39  */
  40 
  41 package sun.util.resources;
  42 
  43 import java.security.AccessController;
  44 import java.security.PrivilegedAction;
  45 import java.util.Arrays;
  46 import java.util.Iterator;
  47 import java.util.List;
  48 import java.util.Locale;
  49 import java.util.MissingResourceException;
  50 import java.util.ResourceBundle;
  51 import java.util.Set;
  52 import sun.util.locale.provider.JRELocaleProviderAdapter;
  53 import sun.util.locale.provider.LocaleDataMetaInfo;
  54 import sun.util.locale.provider.LocaleProviderAdapter;
  55 import static sun.util.locale.provider.LocaleProviderAdapter.Type.CLDR;
  56 import static sun.util.locale.provider.LocaleProviderAdapter.Type.JRE;
  57 
  58 /**
  59  * Provides information about and access to resource bundles in the
  60  * sun.text.resources and sun.util.resources packages or in their corresponding
  61  * packages for CLDR.
  62  *
  63  * @author Asmus Freytag
  64  * @author Mark Davis
  65  */
  66 
  67 public class LocaleData {
  68     private final LocaleProviderAdapter.Type type;
  69 
  70     public LocaleData(LocaleProviderAdapter.Type type) {
  71         this.type = type;
  72     }
  73 




  33  * of a License Agreement between Taligent and Sun. This technology
  34  * is protected by multiple US and International patents.
  35  *
  36  * This notice and attribution to Taligent may not be removed.
  37  * Taligent is a registered trademark of Taligent, Inc.
  38  *
  39  */
  40 
  41 package sun.util.resources;
  42 
  43 import java.security.AccessController;
  44 import java.security.PrivilegedAction;
  45 import java.util.Arrays;
  46 import java.util.Iterator;
  47 import java.util.List;
  48 import java.util.Locale;
  49 import java.util.MissingResourceException;
  50 import java.util.ResourceBundle;
  51 import java.util.Set;
  52 import sun.util.locale.provider.JRELocaleProviderAdapter;

  53 import sun.util.locale.provider.LocaleProviderAdapter;
  54 import static sun.util.locale.provider.LocaleProviderAdapter.Type.CLDR;
  55 import static sun.util.locale.provider.LocaleProviderAdapter.Type.JRE;
  56 
  57 /**
  58  * Provides information about and access to resource bundles in the
  59  * sun.text.resources and sun.util.resources packages or in their corresponding
  60  * packages for CLDR.
  61  *
  62  * @author Asmus Freytag
  63  * @author Mark Davis
  64  */
  65 
  66 public class LocaleData {
  67     private final LocaleProviderAdapter.Type type;
  68 
  69     public LocaleData(LocaleProviderAdapter.Type type) {
  70         this.type = type;
  71     }
  72