It is similar to java.util.ResourceBundle, but they differ as follows.
InputStream getResourceAsStream(String)
.Instances of PropertyBundle are cached, so the performance is good. However, it implies the property file mapped by the giving class loader, name and locale is immutable. In other words, if you update the content of a property file, it might not be reflected to getString unless it is cleared out of the cache.
Thread safe. @author tomyeh
|
|