equal
deleted
inserted
replaced
138 */ |
138 */ |
139 public class PropertyResourceBundle extends ResourceBundle { |
139 public class PropertyResourceBundle extends ResourceBundle { |
140 |
140 |
141 // Check whether the strict encoding is specified. |
141 // Check whether the strict encoding is specified. |
142 // The possible encoding is either "ISO-8859-1" or "UTF-8". |
142 // The possible encoding is either "ISO-8859-1" or "UTF-8". |
143 private static final String encoding = |
143 private static final String encoding = GetPropertyAction |
144 GetPropertyAction |
144 .privilegedGetProperty("java.util.PropertyResourceBundle.encoding", "") |
145 .getProperty("java.util.PropertyResourceBundle.encoding", "") |
|
146 .toUpperCase(Locale.ROOT); |
145 .toUpperCase(Locale.ROOT); |
147 |
146 |
148 /** |
147 /** |
149 * Creates a property resource bundle from an {@link java.io.InputStream |
148 * Creates a property resource bundle from an {@link java.io.InputStream |
150 * InputStream}. This constructor reads the property file in UTF-8 by default. |
149 * InputStream}. This constructor reads the property file in UTF-8 by default. |