* <strong>Note:</strong> PropertyResourceBundle can be constructed either
* from an InputStream or a Reader, which represents a property file.
* Constructing a PropertyResourceBundle instance from an InputStream requires
* that the input stream be encoded in ISO-8859-1. In that case, characters
* that cannot be represented in ISO-8859-1 encoding must be represented by
* <a href="http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#3.3">Unicode Escapes</a>,
* whereas the other constructor which takes a Reader does not have that limitation.
I don't want to unicode-escape. So, how do I instantiate ResourceBundle using the constructor which takes a Reader? I don't have a debuggable version of rt.jar (which is a whole separate question). All I can tell that the bunde is instantiated (using the wrong constructor) in ResourceBundle.Control inner class.
Since ResourceBundle is abstract, why don't you extend it and create a UnicodeResourceBundle class?
The example above is already trying to do that. However, the logic in ResourceBundle is kind of mind-boggling, and without an adequate debugger, finding an elegant hook without rewriting the whole thing does not appear to be easy. I am thinking of giving up on ResourceBundle altogether and implementing my own logic from scratch, unless someone here helps.
Or we might never have existed at all. Freaky. So we should cherish everything. Even this tiny ad: