Posted on 2007-02-08 09:43
lixw 阅读(394)
评论(0) 编辑 收藏
1 //file may be named basename_locale.properties
2 ResourceBundle bundle = ResourceBundle.getBundle("basename");
3 // Enumerate contents of resource bundle
4 //The next two lines should be in one line.
5 for (Enumeration props = bundle.getKeys();props.hasMoreElements(); ) {
6 String key = (String)props.nextElement();
7 process(key, bundle.getObject(key));
8 }