锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产天堂久久久久久,亚洲激情电影在线,亚洲五月综合缴情婷婷http://www.tkk7.com/zhujiang001/zh-cnSat, 10 May 2025 10:25:36 GMTSat, 10 May 2025 10:25:36 GMT60鍐欏湪澶╅緳1錛?鍥炶仈涔嬪悗鐨勮瘽http://www.tkk7.com/zhujiang001/archive/2006/05/16/46382.html瀛ら叿浼朵粌瀛ら叿浼朵粌Tue, 16 May 2006 05:04:00 GMThttp://www.tkk7.com/zhujiang001/archive/2006/05/16/46382.htmlhttp://www.tkk7.com/zhujiang001/comments/46382.htmlhttp://www.tkk7.com/zhujiang001/archive/2006/05/16/46382.html#Feedback0http://www.tkk7.com/zhujiang001/comments/commentRss/46382.htmlhttp://www.tkk7.com/zhujiang001/services/trackbacks/46382.html璞禌灝斿ぉ榫欏洖瓚呯浜旇疆姣旇禌鎬葷粨鈥斺旇漿鐜嬪,璐?br />
鏈兂鏄ㄦ櫄灝辨妸鎬葷粨鍙戜笂鏉ワ紝鏃犲閰掑枬榪囦簡澶達紝涓嶇煡閬撴槰澶╁枬榪囧ご鐨勮繕鏈夊灝戜漢錛?br />綆鍗曟葷粨鍑犵偣錛?br />1榪欐槸鍥炶秴寮濮嬪悗鎴戦槦鎵撶殑鏈嬋鍔ㄤ漢蹇冪殑涓鍦烘瘮璧涳紝鎶鏈嚭浼楃殑鍥炶仈錛屽洟緇撲竴蹇冪殑澶╅緳錛屼負澶у婕旇瘧浜嗕竴鍦虹粡鍏哥殑鏀婚槻澶ф垬銆?br />2絎?9鍒嗛挓錛屽啗鍒涓満寰楃悆錛屼紶緇檊isser鍚庤繀閫熷墠鎻掞紝gisser婕備寒鐨勫垎鐞冿紝鍐涘垁紱佸尯鍐呭乏鑴氫竴鎵o紝璧峰彸鑴氭墦鍏ョ悆闂ㄤ笅瑙掋?0鍒嗛挓錛屽洖鑱旂鍖哄墠浠繪剰鐞冿紝17鍙瘋涪鍑轟竴涓紓浜殑寮х嚎錛屽姜鍝ヤ竴涓棻鍦版嫈钁憋紝钁卞お閲嶄簡錛岀悆鎿︾潃褰摜鐨勬寚灝栧嚮涓棬妤e叆緗戙傚搱鍝堬紝蹇劅浜?0縐掞紝榪欏氨鏄凍鐞冪殑欖呭姏鍟娿?br />3鎰熻阿鍥炶仈鐨勫厔寮熶滑錛屾劅璋㈠ぉ榫欑殑闃熷弸浠紝鎰熻阿鐜板満鍔犳補鍔╁▉鐨勬湅鍙嬩滑錛?br />澶╅緳鏈満鏈浣籌細鍐涘垁錛焔isser錛熼樋闈烇紵鑲ョ墰錛熴傘傘傘傘傘傘傘傘?br />鍙傚姞浜哄憳錛氬啗鍒鍙奓D錛屽皬铏強LD錛屽緩鍐涘強LD錛屾潕鏅哄強LD錛屽皬瀹夊強LD,灝忓反鍙奓D錛屼級浠冨強灝忓皬錛屾垜鍜屽江闈欙紝gisser銆侀樋闈炪佽礉涔?灝忓▉ 閮濅寒 鍥藉簡 鏅撹緣 chichi 涓夊皯 鏃呮父鑰?涔愪箰璞嗐佹潕鍐?灝忚銆?br />
澶╅緳閱夐厭璁幫紝綰ū涔愶紝瀛樺ū涔愶紒鈥斺旇漿鑲ョ墰璐?/strong>

璇濊鏄ㄥぉ姣旇禌緇撴潫錛屽ぉ榫欎竴琛屼漢鍘籉B銆傚腑闂存帹鏉崲鐩忥紝濂戒笉鐑椆銆傚ぇ瀹舵笎娓愰兘鏈夌偣鍠濋珮浜嗐?br />灝忓反鍜屽浗搴嗗湪涓璧烽棽鑱娿?灝忓反錛氣滄垜鐪熻姝伙紒閭eぉ鎴戦厭鍚庡け璦錛屾妸浠ュ墠鏇劇粨榪囧鐨勪簨鍛婅瘔浜嗘垜濂蟲湅鍙嬨傗?鍥藉簡錛氣滄垜鏇磋姝伙紒鎴戦厭鍚庡け 璦錛屾妸鎴戞墦綆楀皢鏉ュ啀緇撲竴嬈″鐨勬兂娉曡浜嗗嚭鏉ワ紝 鎴戣佸﹩鍚埌浜嗐傗?
甯棿錛氱帇闃熷枬澶氫簡錛屽紑濮嬬粰浜哄彂閽憋紝涓浜轟竴鐧撅紝璁╀漢涓浼氭墦杞﹀洖瀹躲傝皝涓嶈浠栧氨璺熻皝鎬ワ紝鎭ㄤ笉寰楁毚鎵撲漢瀹朵竴欏褲傜浜屼竴鏃╋紝浠栧氨鐗瑰灞堝湴鎸ㄤ釜鎵撶數璇濓紝鎽嗗嚭涓鍓彲鎬滅浉錛?鈥滃摜銆佸厔寮燂紝鎶婃槰澶╃粰浣犵殑閽辮繕緇欐垜鍚р︹︹?
甯棿錛屽崼鐢熼棿绱у紶錛屽嶄箰鎲嬪潖浜嗭紝鍘昏礬鏃佷竴媯靛皬鏍戞梺鏂逛究錛屽畬浜嬩簡鎶借韓瑕佽蛋錛屽嵈鎰熻鏈変漢鎵綇浜嗕粬錛屼粬鍥炲ご鎺ㄨ緸錛氣滀笉錛屼笉錛屼粖澶╀笉琛岋紝鍏勫紵浠兘絳夋垜鍛紝濡瑰鍐嶈銆傗?鏃犲灝辨槸璧頒笉鑴便傜瓑浠栫殑寤哄啗鐪肩涓嶅拫濂斤紝鐪嬩粬涓涓漢蹇欐椿錛岀瓑寰椾笉鑰愮儲浜嗭紝涔熻繃鏉ヨ窡浠栦竴璧峰姖瑙o細 鈥滃皬濮愶紝浣犳澗鎵嬪惂 錛屾垜浠互鍚庡啀鏉ワ紝鏈轟細鏈夌殑鏄傗濇潵鏉ュ洖鍥炴帹杈炲崐涓灝忔椂涔嬪悗錛屽嶄箰鍜屽緩鍐涙墠鍙戠幇錛屽叾瀹炴槸鑷繁鎶婅叞甯﹁繛浜哄甫鏍戜竴璧鋒崋涓婁簡錛岃繕璺熸爲濂戒竴闃墊儏鎰忕壞銆?br />鍠濈潃鍠濈潃錛屼箰涔愯眴闈炲緱瑕佽蛋錛岀‖鏄璧跺埌鍙︿竴瀹跺幓浼氭湅鍙嬶紝澶у鎷︿粬涓嶄笅錛屽彧寰楁斁浠栧幓浜嗐傚彲娌¤繃澶氫箙錛屼粬鍙堜竴鑴哥伩鐑傚湴紿佺劧鍑虹幇鍦ㄦ垜浠潰鍓嶏紝涓 杈硅繛澹版姳姝夛細鈥滃涓嶈搗錛屽涓嶈搗錛屾垜鍒氬垰鍠濅簡涓欏匡紝鏉ユ櫄浜嗐傗濊鐫錛屼竴灞佽偂鍧愪簡涓嬫潵錛屽啿鐫鏈嶅姟鍛樺枈閬擄細 鈥滄潵鍟婏紝涓婇厭錛佲?鍚庢潵鎴戜滑鎵嶇煡閬擄紝浠栫寮鎴戜滑涔嬪悗錛屽緢鍒╄惤鍦伴捇榪涗簡杞︼紝璧鋒鐐圭伀錛岄珮鍠婄潃錛?鈥滃紑璺紝&^%$#錛佲濈粨鏋滐紝浠栧湪鍥為緳瑙傚ぇ琛椾笂婧滀簡涓鍦堬紝鎶婅濺鍙堝紑鍥炴潵浜嗐傜瓑浠栧啀嬈℃潵鍒版垜浠潰鍓嶆椂錛屼粬宸茬粡杈ㄨ涓嶅嚭璋佹槸璋佹潵浜?br />
鍠濆畬閰掞紝澶у鍚勮嚜鍥炲銆?br />鍥藉簡鍠濆埌闈㈢孩鑰寵丹,鏈変簺鎷呭績:鈥滄垜鐨勮佸﹩寰堝帀瀹?寰堝彲鑳戒笉璁╂垜榪涘闂ㄣ傗濃滄垜鏁欎綘涓鎷涳紝浣犲枬閱変簡鍥炲錛屽厛鍦ㄩ棬澶栨妸琛f湇鑴卞厜錛屽啀鎸夐棬閾冦備綘鑰佸﹩鎵撳紑闂ㄦ椂錛屼綘灝辮刀绱ф妸琛f湇鎵旇繘灞嬮噷銆傚ス鐪嬪埌浣犱竴涓濅笉鎸傦紝鑲畾璁╀綘榪涘闂ㄤ簡銆傗濅笁灝戝嚭鎷涜銆傜浜屽ぉ錛屼笁灝戦棶鍥藉簡銆傗滃杺錛佷綘鑰佸﹩璁╀綘榪涢棬鍚楋紵鈥濃滃攭錛屽埆鎻愪簡錛佹垜璧板埌闂ㄥ彛錛岃劚鍏夎。鏈嶃傞棬寮浜嗭紝鎴戞妸琛f湇鎵旇繘鍘燴︹︼紝闂ㄥ挘涓澹幫紝鍙堝叧涓婁簡錛?img src="http://bbs.hlgnet.com/mote/0-13.gif" border="0" />鎴戣蛋閿欓棬浜嗭紒鈥?
灝忓畨鍜屽啗鍒浣忛檮榪戯紝涓璧峰洖瀹躲傚皬瀹夌湅鍒拌礬杈規湁涓闈㈤暅瀛愶紝渚胯蛋榪囧幓鎹′簡璧鋒潵錛屽鐫闀滃瓙璇達細鈥滆繖鏄庝箞鍥炰簨錛熻繖涓漢濂介潰鐔熷晩錛侊紒鈥濆啗鍒璧?浜嗚繃鏉ワ紝璇達細鈥滆鎴戞潵鐪嬬湅錛併傘傘傜铔嬶紝浣犳庝箞榪炴垜閮戒笉璁よ瘑浜嗭紵鈥?
寤哄啗鏄柊鍙告満錛岄厭鍚庨┚杞︼紝鍥炲鏃舵紕頒笂璀﹀療鍦ㄦ煡杞︺傚氨鍦ㄤ粬鏆楀彨鍊掗湁涓嬭濺鎺ュ彈媯鏌ョ殑鏃跺欙紝璀﹀療鎺ヤ簡涓數璇濓紝鎹х潃鎵嬫満錛屾寚鎵嬬敾鑴氾紝婊旀粩涓嶇粷鍦拌浜?璧鋒潵銆傚緩鍐涗竴鐪嬫湁鏈哄彲瓚侊紝灝辨倓鎮勫湴榪斿洖杞﹂噷錛岃秮鎵撶數璇濈殑璀﹀療涓嶅錛岄椋庣伀鐏湴鎶婅濺寮鍥炰簡瀹躲傚埌浜嗙浜屽ぉ錛屾湁浜烘潵鏁蹭粬瀹剁殑闂紝姝f槸鏄ㄥぉ 鐨勯偅涓瀵熴傚緩鍐涚殑閰掔幇鍦ㄥ凡緇忛啋浜嗭紝鑷劧鐞嗙洿姘斿.鍦拌川闂瀵燂細 鈥滀綘鏉ュ共浠涔堬紵鏈変粈涔堜簨鍟婏紵鈥?璀﹀療璇達細 鈥滀綘鐨勮濺鎴戝凡緇忕粰浣犲紑鍒頒簡闂ㄥ彛錛?鐜板湪錛屼綘鎶婅杞﹁繕緇欐垜鍚с傗?
灝忕邯鏄惌鐜嬮槦鐨勮濺鍥炲幓鐨勩傜浜屽ぉ鏃╀笂鐜嬮槦紿佺劧鍙戠幇灝忕邯鐫″湪灝忓尯鑺卞洯錛屾祽韜笂涓嬪彧鏈変竴鏉″皬瑁よ々銆傝屼粬鐨勪笂琛c佽¥瀛愩侀甯︼紝閮藉彔寰楁暣鏁撮綈榻愬湴鏀懼湪鏃佽竟 錛屼笂闈㈠帇鐫浠栫殑鎵嬫満錛屽眳鐒舵槸鍏充簡鏈虹殑銆傝繕鏈夌悆闉嬶紝涔熸槸鏁存暣榻愰綈鍦版憜鐫錛岃瀛愭斁鍦ㄩ瀷媧為噷鈥︹︾湅鏉ュ皬綰槸鎶婅繖褰撳浜嗐傚悗鏉ヤ竴鎯籌紝騫鎬簭灝忕邯娌¤8鐫$殑鐖卞ソ錛屼笉鐒訛紝鏇存湁鐑椆鍙湅浜嗐?br />鎹璀﹀療閭eぉ榪樻妸涓鍚嶉厭閱夌殑澶╅緳闃熷憳閫佸埌闂ㄥ彛錛屽浠栬錛氣滆繖鐨勭‘鏄綘鐨勫鍚楋紵鈥?鈥滃鏋滀綘鏇挎垜寮浜嗛棬錛屾垜灝遍┈涓婅瘉鏄庣粰浣犵湅錛佲?璀﹀療鎵撳紑闂ㄥ甫浠栬繘鍘匯?鈥滀綘鐪嬭閭d釜瓚崇悆浜嗗悧錛熼偅鏄垜鐨勶紝浣犵湅瑙侀偅鏋剁數瑙嗘満鍚楋紵閭d篃鏄垜鐨勩傗濅粬浠張涓婁簩妤箋?鈥滆繖鏄垜鐨勭潯鎴匡紝浣?鐪嬭閭e紶搴婂悧錛熺潯鍦ㄩ偅寮犲簥涓婄殑濂充漢鏄垜鐨勫お澶紝浣犵湅瑙佸拰濂圭潯鍦ㄤ竴璧風殑浜哄悧錛熲?璀﹀療鐤戞儜鍦拌錛氣滄庢牱錛熲?鈥滈偅灝辨槸鎴戙傗?

浠ヤ笂綰睘濞變箰錛岀函灞炶儭緙栵紝濡傛湁闆峰悓錛岀粷瀵瑰閥鍚堬紝緇濆宸у悎錛侊紒^_^


]]>
鍦‥clipse涓嬌鐢℉ibernatehttp://www.tkk7.com/zhujiang001/archive/2005/10/31/17507.html瀛ら叿浼朵粌瀛ら叿浼朵粌Mon, 31 Oct 2005 02:59:00 GMThttp://www.tkk7.com/zhujiang001/archive/2005/10/31/17507.htmlhttp://www.tkk7.com/zhujiang001/comments/17507.htmlhttp://www.tkk7.com/zhujiang001/archive/2005/10/31/17507.html#Feedback0http://www.tkk7.com/zhujiang001/comments/commentRss/17507.htmlhttp://www.tkk7.com/zhujiang001/services/trackbacks/17507.html闃呰鍏ㄦ枃

]]>
浣跨敤J2SE API璇誨彇Properties鏂囦歡鐨勫叚縐嶆柟娉?/title><link>http://www.tkk7.com/zhujiang001/archive/2005/10/27/16980.html</link><dc:creator>瀛ら叿浼朵粌</dc:creator><author>瀛ら叿浼朵粌</author><pubDate>Thu, 27 Oct 2005 03:12:00 GMT</pubDate><guid>http://www.tkk7.com/zhujiang001/archive/2005/10/27/16980.html</guid><wfw:comment>http://www.tkk7.com/zhujiang001/comments/16980.html</wfw:comment><comments>http://www.tkk7.com/zhujiang001/archive/2005/10/27/16980.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/zhujiang001/comments/commentRss/16980.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/zhujiang001/services/trackbacks/16980.html</trackback:ping><description><![CDATA[1銆備嬌鐢╦ava.util.Properties綾葷殑load()鏂規硶<BR>紺轟緥錛?nbsp;<BR>         InputStream in = lnew BufferedInputStream(new FileInputStream(name));<BR>         Properties p = new Properties();<BR>         p.load(in);<BR> <P>2銆備嬌鐢╦ava.util.ResourceBundle綾葷殑getBundle()鏂規硶<BR>紺轟緥錛?nbsp;<BR>         ResourceBundle rb = ResourceBundle.getBundle(name, Locale.getDefault());</P> <P>3銆備嬌鐢╦ava.util.PropertyResourceBundle綾葷殑鏋勯犲嚱鏁?BR>紺轟緥錛?nbsp;<BR>         InputStream in = new BufferedInputStream(new FileInputStream(name));<BR>         ResourceBundle rb = new PropertyResourceBundle(in);</P> <P>4銆備嬌鐢╟lass鍙橀噺鐨刧etResourceAsStream()鏂規硶<BR>紺轟緥錛?nbsp;<BR>         InputStream in = JProperties.class.getResourceAsStream(name);<BR>         Properties p = new Properties();<BR>         p.load(in);</P> <P>5銆備嬌鐢╟lass.getClassLoader()鎵寰楀埌鐨刯ava.lang.ClassLoader鐨刧etResourceAsStream()鏂規硶<BR>紺轟緥錛?nbsp;<BR>         InputStream in = JProperties.class.getClassLoader().getResourceAsStream(name);<BR>         Properties p = new Properties();<BR>         p.load(in);</P> <P>6銆備嬌鐢╦ava.lang.ClassLoader綾葷殑getSystemResourceAsStream()闈欐佹柟娉?BR>紺轟緥錛?nbsp;<BR>         InputStream in = ClassLoader.getSystemResourceAsStream(name);<BR>         Properties p = new Properties();<BR>         p.load(in);</P> <P>琛ュ厖</P> <P>Servlet涓彲浠ヤ嬌鐢╦avax.servlet.ServletContext鐨刧etResourceAsStream()鏂規硶<BR>紺轟緥錛?BR>         InputStream in = context.getResourceAsStream(path);<BR>         Properties p = new Properties();<BR>         p.load(in);<BR><BR><FONT color=#0000ff>瀹屾暣鐨勭ず渚嬶紝鍙互鍙傝冮檮浠舵枃浠?/FONT><BR><FONT color=#0000ff>JProperties.java鏂囦歡<BR><FONT color=#008080>/**<BR>** This program is free software.<BR>** <BR>** You may redistribute it and/or modify it under the terms of the GNU<BR>** General Public License as published by the Free Software Foundation.<BR>** Version 2 of the license should be included with this distribution in<BR>** the file LICENSE, as well as License.html. If the license is not<BR>** included with this distribution, you may find a copy at the FSF web<BR>** site at 'www.gnu.org' or 'www.fsf.org', or you may write to the<BR>** Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139 USA.<BR>**<BR>** THIS SOFTWARE IS PROVIDED AS-IS WITHOUT WARRANTY OF ANY KIND,<BR>** NOT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY. THE AUTHOR<BR>** OF THIS SOFTWARE, ASSUMES _NO_ RESPONSIBILITY FOR ANY<BR>** CONSEQUENCE RESULTING FROM THE USE, MODIFICATION, OR<BR>** REDISTRIBUTION OF THIS SOFTWARE. <BR>**/</FONT></P> <P>package com.kindani;</P> <P>//import javax.servlet.ServletContext;<BR>import java.util.*;<BR>import java.io.InputStream;<BR>import java.io.IOException;<BR>import java.io.BufferedInputStream;<BR>import java.io.FileInputStream;</P> <P><FONT color=#008080>/**<BR> * 浣跨敤J2SE API瑾彇Properties鏂囦歡鐨勫叚紼柟娉?BR> * User: SYNFORM<BR> * Date: 2005/07/12<BR> * Time: 18:40:55<BR> * To change this template use File | Settings | File Templates.<BR> */</FONT><BR>public class JProperties {</P> <P>    public final static int BY_PROPERTIES = 1;<BR>    public final static int BY_RESOURCEBUNDLE = 2;<BR>    public final static int BY_PROPERTYRESOURCEBUNDLE = 3;<BR>    public final static int BY_CLASS = 4;<BR>    public final static int BY_CLASSLOADER = 5;<BR>    public final static int BY_SYSTEM_CLASSLOADER = 6;</P> <P>    public final static Properties loadProperties(final String name, final int type) throws IOException {<BR>        Properties p = new Properties();<BR>        InputStream in = null;<BR>        if (type == BY_PROPERTIES) {<BR>            in = new BufferedInputStream(new FileInputStream(name));<BR>            assert (in != null);<BR>            p.load(in);<BR>        } else if (type == BY_RESOURCEBUNDLE) {<BR>            ResourceBundle rb = ResourceBundle.getBundle(name, Locale.getDefault());<BR>            assert (rb != null);<BR>            p = new ResourceBundleAdapter(rb);<BR>        } else if (type == BY_PROPERTYRESOURCEBUNDLE) {<BR>            in = new BufferedInputStream(new FileInputStream(name));<BR>            assert (in != null);<BR>            ResourceBundle rb = new PropertyResourceBundle(in);<BR>            p = new ResourceBundleAdapter(rb);<BR>        } else if (type == BY_CLASS) {<BR>            assert (JProperties.class.equals(new JProperties().getClass()));<BR>            in = JProperties.class.getResourceAsStream(name);<BR>            assert (in != null);<BR>            p.load(in);<BR>            //        return new JProperties().getClass().getResourceAsStream(name);<BR>        } else if (type == BY_CLASSLOADER) {<BR>            assert (JProperties.class.getClassLoader().equals(new JProperties().getClass().getClassLoader()));<BR>            in = JProperties.class.getClassLoader().getResourceAsStream(name);<BR>            assert (in != null);<BR>            p.load(in);<BR>            //         return new JProperties().getClass().getClassLoader().getResourceAsStream(name);<BR>        } else if (type == BY_SYSTEM_CLASSLOADER) {<BR>            in = ClassLoader.getSystemResourceAsStream(name);<BR>            assert (in != null);<BR>            p.load(in);<BR>        }</P> <P>        if (in != null) {<BR>            in.close();<BR>        }<BR>        return p;</P> <P>    }</P> <P>    // ---------------------------------------------- servlet used<BR>/*<BR>    public static Properties loadProperties(ServletContext context, String path) throws IOException {<BR>        assert (context != null);<BR>        InputStream in = context.getResourceAsStream(path);<BR>        assert (in != null);<BR>        Properties p = new Properties();<BR>        p.load(in);<BR>        in.close();<BR>        return p;<BR>    }<BR>*/</P> <P>    // ---------------------------------------------- support class</P> <P>    /**<BR>     * ResourceBundle Adapter class.<BR>     */<BR>    public static class ResourceBundleAdapter extends Properties {<BR>        public ResourceBundleAdapter(ResourceBundle rb) {<BR>            assert (rb instanceof java.util.PropertyResourceBundle);<BR>            this.rb = rb;<BR>            java.util.Enumeration e = rb.getKeys();<BR>            while (e.hasMoreElements()) {<BR>                Object o = e.nextElement();<BR>                this.put(o, rb.getObject((String) o));<BR>            }<BR>        }</P> <P>        private ResourceBundle rb = null;</P> <P>        public ResourceBundle getBundle(String baseName) {<BR>            return ResourceBundle.getBundle(baseName);<BR>        }</P> <P>        public ResourceBundle getBundle(String baseName, Locale locale) {<BR>            return ResourceBundle.getBundle(baseName, locale);<BR>        }</P> <P>        public ResourceBundle getBundle(String baseName, Locale locale, ClassLoader loader) {<BR>            return ResourceBundle.getBundle(baseName, locale, loader);<BR>        }</P> <P>        public Enumeration<String> getKeys() {<BR>            return rb.getKeys();<BR>        }</P> <P>        public Locale getLocale() {<BR>            return rb.getLocale();<BR>        }</P> <P>        public Object getObject(String key) {<BR>            return rb.getObject(key);<BR>        }</P> <P>        public String getString(String key) {<BR>            return rb.getString(key);<BR>        }</P> <P>        public String[] getStringArray(String key) {<BR>            return rb.getStringArray(key);<BR>        }</P> <P>        protected Object handleGetObject(String key) {<BR>            return ((PropertyResourceBundle) rb).handleGetObject(key);<BR>        }</P> <P>    }</P> <P>}<BR><BR><BR><FONT color=#0000ff>JPropertiesTest.java鏂囦歡</FONT><BR><BR><FONT color=#008080>/**<BR>** This program is free software.<BR>** <BR>** You may redistribute it and/or modify it under the terms of the GNU<BR>** General Public License as published by the Free Software Foundation.<BR>** Version 2 of the license should be included with this distribution in<BR>** the file LICENSE, as well as License.html. If the license is not<BR>** included with this distribution, you may find a copy at the FSF web<BR>** site at 'www.gnu.org' or 'www.fsf.org', or you may write to the<BR>** Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139 USA.<BR>**<BR>** THIS SOFTWARE IS PROVIDED AS-IS WITHOUT WARRANTY OF ANY KIND,<BR>** NOT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY. THE AUTHOR<BR>** OF THIS SOFTWARE, ASSUMES _NO_ RESPONSIBILITY FOR ANY<BR>** CONSEQUENCE RESULTING FROM THE USE, MODIFICATION, OR<BR>** REDISTRIBUTION OF THIS SOFTWARE. <BR>**/<BR></FONT>package com.kindani.test;</P> <P>import junit.framework.*;<BR>import com.kindani.JProperties;</P> <P>//import javax.servlet.ServletContext;<BR>import java.util.Properties;</P> <P>public class JPropertiesTest extends TestCase {<BR>    JProperties jProperties;<BR>    String key = "helloworld.title";<BR>    String value = "Hello World!";</P> <P>    public void testLoadProperties() throws Exception {<BR>        String name = null;<BR>        Properties p = new Properties();</P> <P>        name = "C:\\IDEAP\\Properties4Methods\\src\\com\\kindani\\test\\LocalStrings.properties";<BR>        p = JProperties.loadProperties(name, JProperties.BY_PROPERTIES);<BR>        assertEquals(value, p.getProperty(key));</P> <P>        name = "com.kindani.test.LocalStrings";<BR>        p = JProperties.loadProperties(name,JProperties.BY_RESOURCEBUNDLE);<BR>        assertEquals(value, p.getProperty(key));<BR>        assertEquals(value,((JProperties.ResourceBundleAdapter)p).getString(key));</P> <P>        name = "C:\\IDEAP\\Properties4Methods\\src\\com\\kindani\\test\\LocalStrings.properties";<BR>        p = JProperties.loadProperties(name, JProperties.BY_PROPERTYRESOURCEBUNDLE);<BR>        assertEquals(value, p.getProperty(key));<BR>        assertEquals(value,((JProperties.ResourceBundleAdapter)p).getString(key));</P> <P>        name = "<A href="file://com//kindani//test//LocalStrings.properties">\\com\\kindani\\test\\LocalStrings.properties</A>";<BR>        p = JProperties.loadProperties(name, JProperties.BY_SYSTEM_CLASSLOADER);<BR>        assertEquals(value, p.getProperty(key));</P> <P>        name = "<A href="file://com//kindani//test//LocalStrings.properties">\\com\\kindani\\test\\LocalStrings.properties</A>";<BR>        p = JProperties.loadProperties(name, JProperties.BY_CLASSLOADER);<BR>        assertEquals(value, p.getProperty(key));</P> <P>        name = "test\\LocalStrings.properties";<BR>        p = JProperties.loadProperties(name, JProperties.BY_CLASS);<BR>        assertEquals(value, p.getProperty(key));<BR>    }</P> <P>/*<BR>    public void testLoadProperties2() throws Exception {<BR>        ServletContext context = null;<BR>        String path = null;<BR>        Properties p = null;<BR>        path = "/WEB-INF/classes/LocalStrings.properties";<BR>        p = JProperties.loadProperties(context, path);<BR>        assertEquals(value, p.getProperty(key));<BR>    }<BR>*/<BR>}<BR><BR><FONT color=#0000ff>properties鏂囦歡涓嶫PropertiesTest.java鏂囦歡鐩稿悓鐨勭洰褰曚笅<BR>LocalStrings.properties鏂囦歡</FONT><BR># $Id: LocalStrings.properties,v 1.1 2000/08/17 00:57:52 horwat Exp $</P> <P># Default localized resources for example servlets<BR># This locale is en_US</P> <P>helloworld.title=Hello World!</P> <P>requestinfo.title=Request Information Example<BR>requestinfo.label.method=Method:<BR>requestinfo.label.requesturi=Request URI:<BR>requestinfo.label.protocol=Protocol:<BR>requestinfo.label.pathinfo=Path Info:<BR>requestinfo.label.remoteaddr=Remote Address:</P> <P>requestheader.title=Request Header Example</P> <P>requestparams.title=Request Parameters Example<BR>requestparams.params-in-req=Parameters in this request:<BR>requestparams.no-params=No Parameters, Please enter some<BR>requestparams.firstname=First Name:<BR>requestparams.lastname=Last Name:</P> <P>cookies.title=Cookies Example<BR>cookies.cookies=Your browser is sending the following cookies:<BR>cookies.no-cookies=Your browser isn't sending any cookies<BR>cookies.make-cookie=Create a cookie to send to your browser<BR>cookies.name=Name:<BR>cookies.value=Value:<BR>cookies.set=You just sent the following cookie to your browser:</P> <P>sessions.title=Sessions Example<BR>sessions.id=Session ID:<BR>sessions.created=Created:<BR>sessions.lastaccessed=Last Accessed:<BR>sessions.data=The following data is in your session:<BR>sessions.adddata=Add data to your session<BR>sessions.dataname=Name of Session Attribute:<BR>sessions.datavalue=Value of Session Attribute:<BR></P></FONT><img src ="http://www.tkk7.com/zhujiang001/aggbug/16980.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/zhujiang001/" target="_blank">瀛ら叿浼朵粌</a> 2005-10-27 11:12 <a href="http://www.tkk7.com/zhujiang001/archive/2005/10/27/16980.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://hylaowu.com" target="_blank">亚洲美女大bbbbbbbbb</a>| <a href="http://41xjj.com" target="_blank">亚洲乱码日产一区三区</a>| <a href="http://kkm55.com" target="_blank">中文字幕亚洲男人的天堂网络</a>| <a href="http://yanyingqiang.com" target="_blank">日本一卡精品视频免费</a>| <a href="http://ydstbj.com" target="_blank">婷婷精品国产亚洲AV麻豆不片</a>| <a href="http://fdsyjy.com" target="_blank">免费的全黄一级录像带</a>| <a href="http://leeszewan.com" target="_blank">亚洲人成网站在线播放vr</a>| <a href="http://hljjlhl.com" target="_blank">国产免费人成视频尤勿视频</a>| <a href="http://998wc.com" target="_blank">亚洲理论电影在线观看</a>| <a href="http://www24ckck.com" target="_blank">免费av一区二区三区</a>| <a href="http://977446.com" target="_blank">亚洲日本在线免费观看</a>| <a href="http://0515bh.com" target="_blank">无人在线观看完整免费版视频</a>| <a href="http://038037.com" target="_blank">国产午夜亚洲精品</a>| <a href="http://aqdav22.com" target="_blank">国产精品久免费的黄网站</a>| <a href="http://bomilon.com" target="_blank">日日躁狠狠躁狠狠爱免费视频 </a>| <a href="http://456jjj.com" target="_blank">色视频在线观看免费</a>| <a href="http://121fj.com" target="_blank">亚洲第一区在线观看</a>| <a href="http://szyujiaxing.com" target="_blank">国产免费A∨在线播放</a>| <a href="http://clzqb2b.com" target="_blank">亚洲欭美日韩颜射在线二</a>| <a href="http://zhaosifuwang.com" target="_blank">久久免费福利视频</a>| <a href="http://477077.com" target="_blank">亚洲一区二区三区高清视频</a>| <a href="http://3688008.com" target="_blank">国产成人免费福利网站</a>| <a href="http://789xxoo.com" target="_blank">a在线视频免费观看</a>| <a href="http://lshwork.com" target="_blank">亚洲国产av一区二区三区丶</a>| <a href="http://dslygc.com" target="_blank">又爽又黄无遮挡高清免费视频</a>| <a href="http://xx9911.com" target="_blank">中国一级特黄高清免费的大片中国一级黄色片</a>| <a href="http://chibifilm.com" target="_blank">亚洲精品无码成人AAA片</a>| <a href="http://arkinbokis.com" target="_blank">亚州免费一级毛片</a>| <a href="http://qihongxia.com" target="_blank">精品久久久久亚洲</a>| <a href="http://w6336.com" target="_blank">亚洲AV无码一区东京热</a>| <a href="http://tjbdyx.com" target="_blank">国产免费久久精品99re丫y</a>| <a href="http://www398ph.com" target="_blank">色屁屁在线观看视频免费</a>| <a href="http://51nianyefan.com" target="_blank">日本亚洲成高清一区二区三区</a>| <a href="http://2886868.com" target="_blank">国产91免费视频</a>| <a href="http://66cws.com" target="_blank">污视频网站在线免费看</a>| <a href="http://jinluffcl.com" target="_blank">亚洲日本在线观看</a>| <a href="http://633223.com" target="_blank">日本高清免费网站</a>| <a href="http://huafagz.com" target="_blank">精品在线免费观看</a>| <a href="http://mosason.com" target="_blank">99亚洲男女激情在线观看</a>| <a href="http://tskes.com" target="_blank">亚洲免费视频在线观看</a>| <a href="http://116qc.com" target="_blank">波多野结衣一区二区免费视频</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>