“
属性教程
”中的示例在
FileInputStream加载后显式关闭了显式窗口,因此我认为可以肯定地认为该
load方法不负责任。
// create and load default propertiesProperties defaultProps = new Properties();FileInputStream in = new FileInputStream("defaultProperties");defaultProps.load(in);in.close();仅供参考,我检查了Apache的和谐的执行性能,它也
不会 在负载关闭流。



