2013年6月25日

摘要: 使用JavaSEAPI读取Properties文件的六种方法1。使用java.util.Properties类的load()方法示例:InputStreamin=lnewBufferedInputStream(newFileInputStream(name));Propertiesp=newProperties();p.load(in);2。使用java.util.ResourceBundle类的getBundle()方法示例:ResourceBundlerb=ResourceBundle.getBundle(name,Locale.getDefault());3。使用java.util.Pr 阅读全文
posted @ 2013-06-25 09:54 世界之大追梦者 阅读(248) 评论(0) 推荐(0) 编辑

导航