使用J2SE API读取Properties文件的六种方法
摘要:
使用J2SEAPI读取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.Prop 阅读全文
posted @ 2006-03-27 15:38 goodvify 阅读(109) 评论(0) 推荐(0)
浙公网安备 33010602011771号