OLD | NEW |
1 /* | 1 /* |
2 * ***************************************************************************** | 2 * ***************************************************************************** |
3 * Copyright (C) 2005-2014, International Business Machines Corporation and | 3 * Copyright (C) 2005-2014, International Business Machines Corporation and |
4 * others. All Rights Reserved. | 4 * others. All Rights Reserved. |
5 * ***************************************************************************** | 5 * ***************************************************************************** |
6 */ | 6 */ |
7 | 7 |
8 package com.ibm.icu.impl; | 8 package com.ibm.icu.impl; |
9 | 9 |
10 import java.io.BufferedReader; | 10 import java.io.BufferedReader; |
(...skipping 11 matching lines...) Expand all Loading... |
22 import java.util.Locale; | 22 import java.util.Locale; |
23 import java.util.MissingResourceException; | 23 import java.util.MissingResourceException; |
24 import java.util.ResourceBundle; | 24 import java.util.ResourceBundle; |
25 import java.util.Set; | 25 import java.util.Set; |
26 | 26 |
27 import com.ibm.icu.impl.URLHandler.URLVisitor; | 27 import com.ibm.icu.impl.URLHandler.URLVisitor; |
28 import com.ibm.icu.util.ULocale; | 28 import com.ibm.icu.util.ULocale; |
29 import com.ibm.icu.util.UResourceBundle; | 29 import com.ibm.icu.util.UResourceBundle; |
30 import com.ibm.icu.util.UResourceBundleIterator; | 30 import com.ibm.icu.util.UResourceBundleIterator; |
31 import com.ibm.icu.util.UResourceTypeMismatchException; | 31 import com.ibm.icu.util.UResourceTypeMismatchException; |
32 import com.ibm.icu.util.VersionInfo; | |
33 | 32 |
34 public class ICUResourceBundle extends UResourceBundle { | 33 public class ICUResourceBundle extends UResourceBundle { |
35 /** | 34 /** |
36 * The data path to be used with getBundleInstance API | 35 * The data path to be used with getBundleInstance API |
| 36 * @deprecated because not specific to resource bundles; use the ICUData con
stants instead |
37 */ | 37 */ |
38 protected static final String ICU_DATA_PATH = "com/ibm/icu/impl/"; | 38 @Deprecated |
| 39 protected static final String ICU_DATA_PATH = ICUData.ICU_DATA_PATH; |
39 /** | 40 /** |
40 * The data path to be used with getBundleInstance API | 41 * The data path to be used with getBundleInstance API |
| 42 * @deprecated because not specific to resource bundles; use the ICUData con
stants instead |
41 */ | 43 */ |
42 public static final String ICU_BUNDLE = "data/icudt" + VersionInfo.ICU_DATA_
VERSION_PATH; | 44 @Deprecated |
| 45 public static final String ICU_BUNDLE = ICUData.ICU_BUNDLE; |
43 | 46 |
44 /** | 47 /** |
45 * The base name of ICU data to be used with getBundleInstance API | 48 * The base name of ICU data to be used with getBundleInstance API |
| 49 * @deprecated because not specific to resource bundles; use the ICUData con
stants instead |
46 */ | 50 */ |
47 public static final String ICU_BASE_NAME = ICU_DATA_PATH + ICU_BUNDLE; | 51 @Deprecated |
| 52 public static final String ICU_BASE_NAME = ICUData.ICU_BASE_NAME; |
48 | 53 |
49 /** | 54 /** |
50 * The base name of collation data to be used with getBundleInstance API | 55 * The base name of collation data to be used with getBundleInstance API |
| 56 * @deprecated because not specific to resource bundles; use the ICUData con
stants instead |
51 */ | 57 */ |
52 public static final String ICU_COLLATION_BASE_NAME = ICU_BASE_NAME + "/coll"
; | 58 @Deprecated |
53 | 59 public static final String ICU_COLLATION_BASE_NAME = ICUData.ICU_COLLATION_B
ASE_NAME; |
54 /** | |
55 * The base name of rbbi data to be used with getData API | |
56 */ | |
57 public static final String ICU_BRKITR_NAME = "/brkitr"; | |
58 | 60 |
59 /** | 61 /** |
60 * The base name of rbbi data to be used with getBundleInstance API | 62 * The base name of rbbi data to be used with getBundleInstance API |
| 63 * @deprecated because not specific to resource bundles; use the ICUData con
stants instead |
61 */ | 64 */ |
62 public static final String ICU_BRKITR_BASE_NAME = ICU_BASE_NAME + ICU_BRKITR
_NAME; | 65 @Deprecated |
| 66 public static final String ICU_BRKITR_BASE_NAME = ICUData.ICU_BRKITR_BASE_NA
ME; |
63 | 67 |
64 /** | 68 /** |
65 * The base name of rbnf data to be used with getBundleInstance API | 69 * The base name of rbnf data to be used with getBundleInstance API |
| 70 * @deprecated because not specific to resource bundles; use the ICUData con
stants instead |
66 */ | 71 */ |
67 public static final String ICU_RBNF_BASE_NAME = ICU_BASE_NAME + "/rbnf"; | 72 @Deprecated |
| 73 public static final String ICU_RBNF_BASE_NAME = ICUData.ICU_RBNF_BASE_NAME; |
68 | 74 |
69 /** | 75 /** |
70 * The base name of transliterator data to be used with getBundleInstance AP
I | 76 * The base name of transliterator data to be used with getBundleInstance AP
I |
| 77 * @deprecated because not specific to resource bundles; use the ICUData con
stants instead |
71 */ | 78 */ |
72 public static final String ICU_TRANSLIT_BASE_NAME = ICU_BASE_NAME + "/transl
it"; | 79 @Deprecated |
| 80 public static final String ICU_TRANSLIT_BASE_NAME = ICUData.ICU_TRANSLIT_BAS
E_NAME; |
73 | 81 |
74 public static final String ICU_LANG_BASE_NAME = ICU_BASE_NAME + "/lang"; | 82 /** |
75 public static final String ICU_CURR_BASE_NAME = ICU_BASE_NAME + "/curr"; | 83 * @deprecated because not specific to resource bundles; use the ICUData con
stants instead |
76 public static final String ICU_REGION_BASE_NAME = ICU_BASE_NAME + "/region"; | 84 */ |
77 public static final String ICU_ZONE_BASE_NAME = ICU_BASE_NAME + "/zone"; | 85 @Deprecated |
| 86 public static final String ICU_LANG_BASE_NAME = ICUData.ICU_LANG_BASE_NAME; |
| 87 /** |
| 88 * @deprecated because not specific to resource bundles; use the ICUData con
stants instead |
| 89 */ |
| 90 @Deprecated |
| 91 public static final String ICU_CURR_BASE_NAME = ICUData.ICU_CURR_BASE_NAME; |
| 92 /** |
| 93 * @deprecated because not specific to resource bundles; use the ICUData con
stants instead |
| 94 */ |
| 95 @Deprecated |
| 96 public static final String ICU_REGION_BASE_NAME = ICUData.ICU_REGION_BASE_NA
ME; |
| 97 /** |
| 98 * @deprecated because not specific to resource bundles; use the ICUData con
stants instead |
| 99 */ |
| 100 @Deprecated |
| 101 public static final String ICU_ZONE_BASE_NAME = ICUData.ICU_ZONE_BASE_NAME; |
78 | 102 |
79 private static final String NO_INHERITANCE_MARKER = "\u2205\u2205\u2205"; | 103 private static final String NO_INHERITANCE_MARKER = "\u2205\u2205\u2205"; |
80 | 104 |
81 /** | 105 /** |
82 * The class loader constant to be used with getBundleInstance API | 106 * The class loader constant to be used with getBundleInstance API |
83 */ | 107 */ |
84 public static final ClassLoader ICU_DATA_CLASS_LOADER; | 108 public static final ClassLoader ICU_DATA_CLASS_LOADER; |
85 static { | 109 static { |
86 ClassLoader loader = ICUData.class.getClassLoader(); | 110 ClassLoader loader = ICUData.class.getClassLoader(); |
87 if (loader == null) { | 111 if (loader == null) { |
(...skipping 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1435 // implement it. | 1459 // implement it. |
1436 // Consider deprecating UResourceBundle.handleGetKeys(), and consider making
it always return null. | 1460 // Consider deprecating UResourceBundle.handleGetKeys(), and consider making
it always return null. |
1437 protected Enumeration<String> handleGetKeys() { | 1461 protected Enumeration<String> handleGetKeys() { |
1438 return Collections.enumeration(handleKeySet()); | 1462 return Collections.enumeration(handleKeySet()); |
1439 } | 1463 } |
1440 | 1464 |
1441 protected boolean isTopLevelResource() { | 1465 protected boolean isTopLevelResource() { |
1442 return container == null; | 1466 return container == null; |
1443 } | 1467 } |
1444 } | 1468 } |
OLD | NEW |