factor Properties and PropertieResourceBundle out of ResourceBundle

This commit is contained in:
Joel Dice
2007-09-17 16:16:57 -06:00
parent b0bb443fa2
commit 86999df5f2
3 changed files with 124 additions and 114 deletions

View File

@ -0,0 +1,16 @@
package java.util;
import java.io.InputStream;
import java.io.IOException;
public class PropertyResourceBundle extends ResourceBundle {
private final Properties map = new Properties();
public PropertyResourceBundle(InputStream in) throws IOException {
map.load(in);
}
public Object handleGetObject(String key) {
return map.get(key);
}
}