锘??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 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 肃南| 蓬溪县| 民勤县| 河池市| 大洼县| 应城市| 威宁| 固始县| 错那县| 温州市| 惠水县| 阿坝| 阿合奇县| 房山区| 包头市| 池州市| 句容市| 抚州市| 新巴尔虎右旗| 大渡口区| 多伦县| 资源县| 钟山县| 鄂伦春自治旗| 桐城市| 将乐县| 临安市| 安宁市| 宁海县| 渝北区| 永吉县| 崇阳县| 墨玉县| 吉林市| 宾阳县| 武宣县| 若尔盖县| 永靖县| 元氏县| 舒兰市| 三门县|