锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产成人一区三区,精品久久久久久国产91,青青草在线视频免费观看http://blogjava.net/hk2000c/category/12785.html鎶鏈簮浜庡摬瀛︼紝鍝插鏉ユ簮浜庣敓媧? 鍏沖績鐢熸椿錛屽叧娉ㄥ仴搴鳳紝鍏沖績浠栦漢 zh-cnWed, 26 Dec 2007 21:55:37 GMTWed, 26 Dec 2007 21:55:37 GMT60J2SE API璇誨彇Properties鏂囦歡鍏鏂規硶 http://www.aygfsteel.com/hk2000c/archive/2007/12/27/170763.htmlhk2000chk2000cWed, 26 Dec 2007 16:00:00 GMThttp://www.aygfsteel.com/hk2000c/archive/2007/12/27/170763.htmlhttp://www.aygfsteel.com/hk2000c/comments/170763.htmlhttp://www.aygfsteel.com/hk2000c/archive/2007/12/27/170763.html#Feedback0http://www.aygfsteel.com/hk2000c/comments/commentRss/170763.htmlhttp://www.aygfsteel.com/hk2000c/services/trackbacks/170763.html 

浣跨敤J2SEAPI璇誨彇Properties鏂囦歡鐨勫叚縐嶆柟娉?br />


銆銆1銆備嬌鐢╦ava.util.Properties綾葷殑load()鏂規硶紺轟緥錛欼nputStreamin=lnewBufferedInputStream(newFileInputStream(name));Propertiesp=newProperties();p.load(in);

銆銆2銆備嬌鐢╦ava.util.ResourceBundle綾葷殑getBundle()鏂規硶紺轟緥錛歊esourceBundlerb=ResourceBundle.getBundle(name,Locale.getDefault());

銆銆3銆備嬌鐢╦ava.util.PropertyResourceBundle綾葷殑鏋勯犲嚱鏁扮ず渚嬶細InputStreamin=newBufferedInputStream(newFileInputStream(name));ResourceBundlerb=newPropertyResourceBundle(in);

銆銆4銆備嬌鐢╟lass鍙橀噺鐨刧etResourceAsStream()鏂規硶紺轟緥錛欼nputStreamin=JProperties.class.getResourceAsStream(name);Propertiesp=newProperties();p.load(in);

銆銆5銆備嬌鐢╟lass.getClassLoader()鎵寰楀埌鐨刯ava.lang.ClassLoader鐨刧etResourceAsStream()鏂規硶紺轟緥錛欼nputStreamin=JProperties.class.getClassLoader().getResourceAsStream(name);Propertiesp=newProperties();p.load(in);

銆銆6銆備嬌鐢╦ava.lang.ClassLoader綾葷殑getSystemResourceAsStream()闈欐佹柟娉曠ず渚嬶細InputStreamin=ClassLoader.getSystemResourceAsStream(name);Propertiesp=newProperties();p.load(in);

銆銆琛ュ厖

銆銆Servlet涓彲浠ヤ嬌鐢╦avax.servlet.ServletContext鐨刧etResourceAsStream()鏂規硶紺轟緥錛欼nputStreamin=context.getResourceAsStream(path);Propertiesp=newProperties();p.load(in);

 




hk2000c 2007-12-27 00:00 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 黑山县| 盐山县| 齐齐哈尔市| 资阳市| 亚东县| 邵武市| 霍林郭勒市| 普定县| 通道| 马公市| 南乐县| 子长县| 乌恰县| 武功县| 临夏县| 乾安县| 蒙城县| 柏乡县| 襄汾县| 甘孜| 临夏县| 巫山县| 信阳市| 赣榆县| 类乌齐县| 阳西县| 开封市| 天峨县| 泉州市| 页游| 武汉市| 深水埗区| 永胜县| 泰安市| 伊宁县| 唐海县| 嘉祥县| 拉孜县| 崇阳县| 宜丰县| 井研县|