mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
factor Properties and PropertieResourceBundle out of ResourceBundle
This commit is contained in:
16
classpath/java/util/PropertyResourceBundle.java
Normal file
16
classpath/java/util/PropertyResourceBundle.java
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user