/openjdk7/jdk/test/java/util/ResourceBundle/ |
H A D | Bug6355009.java | 33 private final ResourceBundle bundle = ResourceBundle.getBundle(Bug6355009.class.getName()); field in class:Bug6355009
|
H A D | Bug6356571.java | 35 private ResourceBundle bundle = ResourceBundle.getBundle("Bug6356571"); field in class:Bug6356571 38 String id = bundle.getString("id");
|
H A D | Bug4396021.java | 26 * @summary Verify that a resource bundle can override its parent. 35 private static ResourceBundle bundle; field in class:Bug4396021 38 bundle = ResourceBundle.getBundle("Bug4396021SpecialMessages"); 45 String result = bundle.getString(key); 47 throw new RuntimeException("Got wrong value from resource bundle"
|
H A D | KeySetTest.java | 79 ResourceBundle bundle; field in class:KeySetTest.TestBundle 85 bundle = ResourceBundle.getBundle(name, locale); 89 Class clazz = bundle.getClass(); 98 return bundle.getKeys(); 104 return m.invoke(bundle, key);
|
H A D | ResourceBundleTest.java | 81 // load up the resource bundle, and make sure we got the right one 82 ResourceBundle bundle = ResourceBundle.getBundle("TestResource"); 83 if (!bundle.getClass().getName().equals("TestResource_fr")) 84 errln("Expected TestResource_fr, got " + bundle.getClass().getName()); 87 String test1 = bundle.getString("Time"); 91 test1 = bundle.getString("For"); 95 String[] test2 = bundle.getStringArray("All"); 104 Object test3 = bundle.getObject("Good"); 111 test2 = bundle.getStringArray("Men"); 121 test3 = bundle 156 doListResourceBundleTest(ResourceBundle bundle) argument [all...] |
H A D | Bug4168625Test.java | 67 ResourceBundle bundle = ResourceBundle.getBundle("Bug4168625Resource2", loc); 68 final String s1 = bundle.getString("name"); 70 errln("getBundle did not find leaf bundle: "+bundle.getClass().getName()); 72 final String s2 = bundle.getString("baseName"); 190 Object bundle = test.getResourceBundle(resName, l); 210 bundle = test.getResourceBundle(resName, l); 222 errln("Resource bundle not caching some classes properly"); 228 public Object bundle; field in class:Bug4168625Test.ConcurrentLoadingThread 246 bundle [all...] |
/openjdk7/jdk/src/share/classes/sun/security/util/ |
H A D | ResourcesMgr.java | 33 private static java.util.ResourceBundle bundle; field in class:ResourcesMgr 40 if (bundle == null) { 43 bundle = java.security.AccessController.doPrivileged( 52 return bundle.getString(s);
|
/openjdk7/corba/src/share/classes/com/sun/tools/corba/se/idl/ |
H A D | ResourceBundleUtil.java | 55 * from the indicated resouce bundle. 87 public static void registerResourceBundle (ResourceBundle bundle) argument 89 if (bundle != null) 90 fBundle = bundle; 103 // get the resource bundle for the locale on this machine
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/ |
H A D | CommonResourceBundle.java | 33 /** Resource bundle implementation for localized messages. 40 private ResourceBundle bundle = null; field in class:CommonResourceBundle 43 // Load the resource bundle of default locale 44 bundle = ResourceBundle.getBundle(BASE_NAME); 48 // Load the resource bundle of specified locale 49 bundle = ResourceBundle.getBundle(BASE_NAME, locale); 84 return bundle;
|
/openjdk7/jdk/test/java/util/Locale/ |
H A D | GenerateKeyList.java | 48 ResourceBundle bundle = ResourceBundle.getBundle(packageName + 50 dumpResourceBundle(resourceBundleName + "/", bundle, out); 52 bundle = ResourceBundle.getBundle(packageName + resourceBundleName, 55 bundle, out); 59 public static void dumpResourceBundle(String pathName, ResourceBundle bundle, argument 61 Enumeration keys = bundle.getKeys(); 64 dumpResource(pathName + "/" + key, bundle.getObject(key), out);
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/dtdparser/ |
H A D | MessageCatalog.java | 98 * <LI> Make sure that a language name is included in each bundle name, 158 * bundle name in the <em>resources</em> sub-package of class passed 162 * @param bundle Name of a group of resource bundles 164 private MessageCatalog(Class packageMember, String bundle) { argument 173 bundleName = bundleName + "resources." + bundle; 183 * default locale is used if possible; second, when no bundle supports 193 ResourceBundle bundle; 200 bundle = ResourceBundle.getBundle(bundleName, locale); 202 bundle = ResourceBundle.getBundle(bundleName, Locale.ENGLISH); 204 return bundle [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/rngom/util/ |
H A D | Localizer.java | 57 private ResourceBundle bundle; field in class:Localizer 104 if (bundle == null) { 111 bundle = ResourceBundle.getBundle(s + "Messages"); 113 return bundle;
|
/openjdk7/jaxp/src/com/sun/org/apache/bcel/internal/util/ |
H A D | SecuritySupport.java | 146 * Gets a resource bundle using the specified base name, the default locale, 149 * @param bundle the base name of the resource bundle, a fully qualified 151 * @return a resource bundle for the given base name and the default locale 153 public static ListResourceBundle getResourceBundle(String bundle) { argument 154 return getResourceBundle(bundle, Locale.getDefault()); 158 * Gets a resource bundle using the specified base name and locale, and the 161 * @param bundle the base name of the resource bundle, a fully qualified 163 * @param locale the locale for which a resource bundle i 166 getResourceBundle(final String bundle, final Locale locale) argument [all...] |
/openjdk7/jdk/test/java/util/ResourceBundle/Control/ |
H A D | StressTest.java | 196 // This will set TTL to a random value for each bundle. 203 ResourceBundle bundle, long loadTime) { 205 // " at " + (loadTime-startTime) + ", bundle=" + bundle); 201 needsReload(String baseName, Locale locale, String format, ClassLoader loader, ResourceBundle bundle, long loadTime) argument
|
/openjdk7/jaxp/src/com/sun/org/apache/xalan/internal/utils/ |
H A D | SecuritySupport.java | 159 * Gets a resource bundle using the specified base name, the default locale, and the caller's class loader. 160 * @param bundle the base name of the resource bundle, a fully qualified class name 161 * @return a resource bundle for the given base name and the default locale 163 public static ListResourceBundle getResourceBundle(String bundle) { argument 164 return getResourceBundle(bundle, Locale.getDefault()); 168 * Gets a resource bundle using the specified base name and locale, and the caller's class loader. 169 * @param bundle the base name of the resource bundle, a fully qualified class name 170 * @param locale the locale for which a resource bundle i 173 getResourceBundle(final String bundle, final Locale locale) argument [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/utils/ |
H A D | SecuritySupport.java | 151 * Gets a resource bundle using the specified base name, the default locale, and the caller's class loader. 152 * @param bundle the base name of the resource bundle, a fully qualified class name 153 * @return a resource bundle for the given base name and the default locale 155 public static ResourceBundle getResourceBundle(String bundle) { argument 156 return getResourceBundle(bundle, Locale.getDefault()); 160 * Gets a resource bundle using the specified base name and locale, and the caller's class loader. 161 * @param bundle the base name of the resource bundle, a fully qualified class name 162 * @param locale the locale for which a resource bundle i 165 getResourceBundle(final String bundle, final Locale locale) argument [all...] |
/openjdk7/jdk/src/share/classes/java/util/logging/ |
H A D | LogRecord.java | 63 * form, but the resource bundle name is, and the recipient object's 64 * readObject method will attempt to locate a suitable resource bundle. 136 * @serial Resource bundle name to localized log message. 208 * Get the localization resource bundle 220 * Set the localization resource bundle. 222 * @param bundle localization bundle (may be null) 224 public void setResourceBundle(ResourceBundle bundle) { argument 225 resourceBundle = bundle; 229 * Get the localization resource bundle nam [all...] |
/openjdk7/jdk/src/share/classes/sun/util/ |
H A D | LocaleServiceProviderPool.java | 313 * @param bundle JRE resource bundle that contains 315 * @param key the key string if bundle is supplied, otherwise null. 321 OpenListResourceBundle bundle, 324 return getLocalizedObjectImpl(getter, locale, false, null, bundle, key, params); 334 * @param bundleKey JRE specific bundle key. e.g., "USD" is for currency 335 symbol and "usd" is for currency display name in the JRE bundle. 336 * @param bundle JRE resource bundle that contains 338 * @param key the key string if bundle i 319 getLocalizedObject(LocalizedObjectGetter<P, S> getter, Locale locale, OpenListResourceBundle bundle, String key, Object... params) argument 342 getLocalizedObject(LocalizedObjectGetter<P, S> getter, Locale locale, String bundleKey, OpenListResourceBundle bundle, String key, Object... params) argument 351 getLocalizedObjectImpl(LocalizedObjectGetter<P, S> getter, Locale locale, boolean isObjectProvider, String bundleKey, OpenListResourceBundle bundle, String key, Object... params) argument [all...] |
/openjdk7/jdk/src/share/classes/java/util/ |
H A D | ResourceBundle.java | 69 * load it from the resource bundle that is appropriate for the current user's 87 * resource bundle which simply has the same name as its family - 88 * "MyResources" - and will be used as the bundle of last resort if a 94 * Each resource bundle in a family contains the same items, but the items have 95 * been translated for the locale represented by that resource bundle. 122 * identify a locale-specific object in the bundle. Here's an 146 * You retrieve an object from resource bundle using the appropriate 189 * to perform the bundle loading process by the <code>getBundle</code> 192 * non-standard resource bundle formats, change the search strategy, or 199 * Resource bundle instance 1462 isValidBundle(ResourceBundle bundle) argument 1470 hasValidParentChain(ResourceBundle bundle) argument 1623 putBundleInCache(CacheKey cacheKey, ResourceBundle bundle, Control control) argument 2723 needsReload(String baseName, Locale locale, String format, ClassLoader loader, ResourceBundle bundle, long loadTime) argument [all...] |
H A D | Locale.java | 385 * API is used to construct them. Java's default resource bundle 1654 OpenListResourceBundle bundle = LocaleData.getLocaleNames(inLocale); 1665 inLocale, bundle, key, 1670 result = bundle.getString(key); 1703 OpenListResourceBundle bundle = LocaleData.getLocaleNames(inLocale); 1705 String names[] = getDisplayVariantArray(bundle, inLocale); 1712 listPattern = bundle.getString("ListPattern"); 1713 listCompositionPattern = bundle.getString("ListCompositionPattern"); 1761 OpenListResourceBundle bundle = LocaleData.getLocaleNames(inLocale); 1766 String[] variantNames = getDisplayVariantArray(bundle, inLocal 1928 getDisplayVariantArray(OpenListResourceBundle bundle, Locale inLocale) argument [all...] |
/openjdk7/hotspot/src/share/vm/opto/ |
H A D | output.cpp | 805 // Determine if this node starts a bundle 1247 // start of a new bundle. 1819 Bundle *bundle = node_bundling(_next_node); local 1820 bundle->set_starts_bundle(); 1822 // Update the bundle record, but leave the flags information alone 1824 bundle->set_instr_count(_bundle_instr_count); 1825 bundle->set_resources_used(_bundle_use.resourcesUsed()); 1835 Bundle *bundle = node_bundling(_next_node); local 1836 bundle->set_starts_bundle(); 1838 // Update the bundle recor 2543 Bundle *bundle = node_bundling(n); local [all...] |
H A D | compile.cpp | 2236 Bundle *bundle = node_bundling(n); local 2237 if (bundle->used_in_unconditional_delay()) { 2241 if (bundle->starts_bundle())
|