摘要: 使用J2SE API读取Properties文件的六种方法1。使用java.util.Properties类的load()方法示例: InputStream in = lnew BufferedInputStream(new FileInputStream(name));Properties p = new Properties();p.load(in);2。使用java.util.ResourceBundle类的getBundle()方法示例: ResourceBundle rb = ResourceBundle.getBundle(name, Locale.getDefault());3。 阅读全文
posted @ 2014-01-14 15:22 Alamps 阅读(8660) 评论(0) 推荐(0) 编辑