public synchronized void load(Reader reader) throws IOException {
load0(new LineReader(reader));
}
Properties.load();传进去一个输入流,字节流或者字符流,再使用Properties.getProperty();来读取配置文件里面的属性值。
public String getProperty(String key) {
Object oval = super.get(key);
String sval = (oval instanceof String) ? (String)oval : null;
return ((sval == null) && (defaults != null)) ? defaults.getProperty(key) : sval;
}