Is it possible to write back to a ResourceBundle? Currently I am using a ResourceBundle to store information, at runtime it is read using the following
while(ResourceBundle.getBundle("bundleName").getKeys().hasMoreElements()){
//output
}
Should I not be using a ResourceBundle if I wish to write to it?
看起来默认情况下不是这样,但是您可以将ResourceBundle.Control的实例传递给ResourceBundle.getBundle,以使用ResourceBundle的自定义子类,该子类将公开允许您设置键的setKey方法。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.