锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品亚洲综合一区在线观看,亚洲av无码一区二区三区天堂 ,亚洲av无码一区二区三区在线播放http://m.tkk7.com/fidodido/category/2508.html瀛愬 緙栫▼ 浠g爜涓庢垜鍚屽湪zh-cnTue, 27 Feb 2007 10:47:46 GMTTue, 27 Feb 2007 10:47:46 GMT60鈥滆蔣浠跺伐涓氬ゥ鏂崱鈥漇YS-CON璇昏呴夋嫨濂栵細 Java寮鍙戯紙杞澆鑷狢SDN錛?/title><link>http://m.tkk7.com/fidodido/archive/2006/03/13/35027.html</link><dc:creator>^ Mustang ^</dc:creator><author>^ Mustang ^</author><pubDate>Mon, 13 Mar 2006 06:24:00 GMT</pubDate><guid>http://m.tkk7.com/fidodido/archive/2006/03/13/35027.html</guid><wfw:comment>http://m.tkk7.com/fidodido/comments/35027.html</wfw:comment><comments>http://m.tkk7.com/fidodido/archive/2006/03/13/35027.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/fidodido/comments/commentRss/35027.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/fidodido/services/trackbacks/35027.html</trackback:ping><description><![CDATA[     鎽樿: SYS-CON 濯掍綋錛坵ww.sys-con.com錛夊湪榪戞棩鎻檽浜嗕竴騫翠竴搴︾殑鈥滆鑰呴夋嫨濂栤濓紝榪欎釜濂栭」鏈夆滆蔣浠跺伐涓氬ゥ鏂崱鈥濅箣縐般備粖騫存槸絎?0灞婏紝鏈夎秴榪?.7涓囩殑SYS-CON璇昏呭弬涓庝簡鎶曠エ錛屽垎鍒瘎閫夊嚭浜嗗湪SOA銆乄eb Services銆丣ava鍜孹ML鎶鏈瓑棰嗗煙鐨勬渶浣充駭鍝併佸伐鍏蜂互鍙婃渶浣蟲彁鍚嶃?  I 鏈浣矹ava搴旂敤鏈嶅姟鍣?鑾瘋儨鑰咃細BEA WebLogic Server (BEA ...  <a href='http://m.tkk7.com/fidodido/archive/2006/03/13/35027.html'>闃呰鍏ㄦ枃</a><img src ="http://m.tkk7.com/fidodido/aggbug/35027.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/fidodido/" target="_blank">^ Mustang ^</a> 2006-03-13 14:24 <a href="http://m.tkk7.com/fidodido/archive/2006/03/13/35027.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Java API涓枃鐗圼杞澆鑷猄un鎶鏈ぞ鍖篯http://m.tkk7.com/fidodido/archive/2005/11/08/18806.html^ Mustang ^^ Mustang ^Tue, 08 Nov 2005 09:00:00 GMThttp://m.tkk7.com/fidodido/archive/2005/11/08/18806.htmlhttp://m.tkk7.com/fidodido/comments/18806.htmlhttp://m.tkk7.com/fidodido/archive/2005/11/08/18806.html#Feedback0http://m.tkk7.com/fidodido/comments/commentRss/18806.htmlhttp://m.tkk7.com/fidodido/services/trackbacks/18806.html Java API 鏂囨。涓枃鐗?/SPAN>


Sun 鍏徃鎻愪緵鐨凧ava API Docs鏄涔犲拰浣跨敤Java璇█涓渶緇忓父浣跨敤鐨勫弬鑰冭祫鏂欎箣涓銆備絾鏄暱鏈熶互鏉ユ鏂囨。鍙湁鑻辨枃鐗堬紝瀵逛簬涓浗鍦板尯鐨凧ava寮鍙戣呮潵璇寸浉褰撶殑涓嶄究銆傜洰鍓峉un 鍏徃姝e湪緇勭粐澶氭柟鍔涢噺灝嗘鏂囨。緲昏瘧鎴愪腑鏂囷紝騫朵簬榪戞棩鍦⊿un 涓浗鎶鏈ぞ鍖猴紙http://gceclub.sun.com.cn/錛夋寮忓彂甯僯ava.lang鍜宩ava.util綾誨簱API 鏂囨。鐨勪腑鏂囩増錛屽叾浠栫被搴揂PI鏂囨。鐨勪腑鏂囩増涔熷皢浜庝粖鍚庝竴孌墊椂闂村唴闄嗙畫鍚戜腑鍥藉湴鍖虹殑寮鍙戜漢鍛樻彁渚涖傚湪J2SE API鏂囨。錛?.0鐗堟湰錛夌殑姹夊寲宸ヤ綔瀹屾垚涔嬪悗錛孲un 涓浗鎶鏈ぞ鍖鴻繕灝嗗紑閫欽ava API 鏂囨。涓枃鐗堢殑鎵撳寘涓嬭澆鏈嶅姟銆?BR>
Java API銆鏂囨。涓枃鐗堝彂甯冭鍒?/SPAN>

鍙戝竷鏃墮棿 鐩稿叧綾誨簱 闃呰/涓嬭澆
2005/10/31 java.lang
java.util
鍦ㄧ嚎闃呰
2005/12/31 java.awt
java.io
java.text

2006/02/28 java.swing
2006/03/31
java.applet
java.beans
java.maths
java.net
java.nio
java.rmi
java.security
java.sql
javax.accessibility
javax.activity
javax.crypto
2006/04/30
javax.imageio
javax.management
javax.net
javax.naming
javax.print
javax.rmi
javax.security
javax.sound
2006/05/31
javax.sql
javax.transaction
javax.xml
org.ietf
org.xml
org.w3c
org.omg




^ Mustang ^ 2005-11-08 17:00 鍙戣〃璇勮
]]>
浣跨敤FilterServlet瀵歸〉闈㈣繘琛岃漿鐮?/title><link>http://m.tkk7.com/fidodido/archive/2005/11/04/18185.html</link><dc:creator>^ Mustang ^</dc:creator><author>^ Mustang ^</author><pubDate>Fri, 04 Nov 2005 11:42:00 GMT</pubDate><guid>http://m.tkk7.com/fidodido/archive/2005/11/04/18185.html</guid><wfw:comment>http://m.tkk7.com/fidodido/comments/18185.html</wfw:comment><comments>http://m.tkk7.com/fidodido/archive/2005/11/04/18185.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/fidodido/comments/commentRss/18185.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/fidodido/services/trackbacks/18185.html</trackback:ping><description><![CDATA[鐩鎬俊寰堝鏈嬪弸鍦ㄤ嬌鐢↗SP/Servlet絳夋妧鏈繘琛岄〉闈㈢紪紼嬬殑鏃跺欓兘浼氭垨澶氭垨灝戝湴閬囧埌涔辯爜闂銆傝В鍐崇殑鏂規硶鏈夊緢澶氾紝姣旇緝甯歌鐨勬槸鎵嬪姩瀵規墍鏈夊彲鑳藉寘鍚腑鏂囩殑瀛楃涓茶繘琛岃漿鐮侊細<BR><BR> <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">String latin </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> <IMG src="http://m.tkk7.com/images/dot.gif">;<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>String gbk </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> String(latin.getBytes(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">iso-8859-1</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">),</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">gbk</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);</SPAN></DIV><BR>榪欎釜鏂規硶榪囧幓鎴戜篃姣旇緝甯哥敤錛岀殑紜湁鏁堬紝浣嗗緢绱禈鑰訛紝涓濇娌℃湁妯″紡涔嬬編錛屾湁娌℃湁鏇翠紭闆呯殑鏂規硶鍛紵濡傛灉浣犲拰鎴戜竴鏍鋒湁鐤戣檻鐨勮瘽錛屽彲浠ヨ冭檻浣跨敤FilterServlet錛?BR><BR> <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><SPAN style="COLOR: #008080"> 1</SPAN><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">import</SPAN><SPAN style="COLOR: #000000"> java.io.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;<BR></SPAN><SPAN style="COLOR: #008080"> 2</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">import</SPAN><SPAN style="COLOR: #000000"> javax.servlet.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;<BR></SPAN><SPAN style="COLOR: #008080"> 3</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">import</SPAN><SPAN style="COLOR: #000000"> javax.servlet.http.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;<BR></SPAN><SPAN style="COLOR: #008080"> 4</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080"> 5</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">import</SPAN><SPAN style="COLOR: #000000"> org.apache.log4j.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;<BR></SPAN><SPAN style="COLOR: #008080"> 6</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080"> 7</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> CharsetFilter<BR></SPAN><SPAN style="COLOR: #008080"> 8</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_168_917_Open_Image onclick="this.style.display='none'; Codehighlighter1_168_917_Open_Text.style.display='none'; Codehighlighter1_168_917_Closed_Image.style.display='inline'; Codehighlighter1_168_917_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_168_917_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_168_917_Closed_Text.style.display='none'; Codehighlighter1_168_917_Open_Image.style.display='inline'; Codehighlighter1_168_917_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">extends</SPAN><SPAN style="COLOR: #000000"> HttpServlet </SPAN><SPAN style="COLOR: #0000ff">implements</SPAN><SPAN style="COLOR: #000000"> Filter</SPAN><SPAN id=Codehighlighter1_168_917_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_168_917_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080"> 9</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff">private</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> Logger logger </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Logger.getLogger(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Filter servlet</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR></SPAN><SPAN style="COLOR: #008080">10</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">11</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> init(FilterConfig filterConfig)<BR></SPAN><SPAN style="COLOR: #008080">12</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_315_319_Open_Image onclick="this.style.display='none'; Codehighlighter1_315_319_Open_Text.style.display='none'; Codehighlighter1_315_319_Closed_Image.style.display='inline'; Codehighlighter1_315_319_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_315_319_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_315_319_Closed_Text.style.display='none'; Codehighlighter1_315_319_Open_Image.style.display='inline'; Codehighlighter1_315_319_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>      </SPAN><SPAN style="COLOR: #0000ff">throws</SPAN><SPAN style="COLOR: #000000"> ServletException</SPAN><SPAN id=Codehighlighter1_315_319_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_315_319_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080">13</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>  }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">14</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">15</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> doFilter(ServletRequest request,ServletResponse response,<BR></SPAN><SPAN style="COLOR: #008080">16</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_424_885_Open_Image onclick="this.style.display='none'; Codehighlighter1_424_885_Open_Text.style.display='none'; Codehighlighter1_424_885_Closed_Image.style.display='inline'; Codehighlighter1_424_885_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_424_885_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_424_885_Closed_Text.style.display='none'; Codehighlighter1_424_885_Open_Image.style.display='inline'; Codehighlighter1_424_885_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>      FilterChain filterChain)</SPAN><SPAN id=Codehighlighter1_424_885_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_424_885_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080">17</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_449_740_Open_Image onclick="this.style.display='none'; Codehighlighter1_449_740_Open_Text.style.display='none'; Codehighlighter1_449_740_Closed_Image.style.display='inline'; Codehighlighter1_449_740_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_449_740_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_449_740_Closed_Text.style.display='none'; Codehighlighter1_449_740_Open_Image.style.display='inline'; Codehighlighter1_449_740_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">(request </SPAN><SPAN style="COLOR: #000000">!=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">null</SPAN><SPAN style="COLOR: #000000">)</SPAN><SPAN id=Codehighlighter1_449_740_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_449_740_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080">18</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>      String charset </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> request.getCharacterEncoding();<BR></SPAN><SPAN style="COLOR: #008080">19</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>      </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">(charset </SPAN><SPAN style="COLOR: #000000">==</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">null</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">||</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">!</SPAN><SPAN style="COLOR: #000000">charset.equalsIgnoreCase(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">gbk</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">))<BR></SPAN><SPAN style="COLOR: #008080">20</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_579_636_Open_Image onclick="this.style.display='none'; Codehighlighter1_579_636_Open_Text.style.display='none'; Codehighlighter1_579_636_Closed_Image.style.display='inline'; Codehighlighter1_579_636_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_579_636_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_579_636_Closed_Text.style.display='none'; Codehighlighter1_579_636_Open_Image.style.display='inline'; Codehighlighter1_579_636_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">try</SPAN><SPAN id=Codehighlighter1_579_636_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_579_636_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080">21</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>          request.setCharacterEncoding(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">GBK</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR></SPAN><SPAN style="COLOR: #008080">22</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>        }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">23</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_684_734_Open_Image onclick="this.style.display='none'; Codehighlighter1_684_734_Open_Text.style.display='none'; Codehighlighter1_684_734_Closed_Image.style.display='inline'; Codehighlighter1_684_734_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_684_734_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_684_734_Closed_Text.style.display='none'; Codehighlighter1_684_734_Open_Image.style.display='inline'; Codehighlighter1_684_734_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">catch</SPAN><SPAN style="COLOR: #000000">(UnsupportedEncodingException ex)</SPAN><SPAN id=Codehighlighter1_684_734_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_684_734_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080">24</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>          logger.warn(ex.getMessage());<BR></SPAN><SPAN style="COLOR: #008080">25</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>        }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">26</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">27</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_749_813_Open_Image onclick="this.style.display='none'; Codehighlighter1_749_813_Open_Text.style.display='none'; Codehighlighter1_749_813_Closed_Image.style.display='inline'; Codehighlighter1_749_813_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_749_813_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_749_813_Closed_Text.style.display='none'; Codehighlighter1_749_813_Open_Image.style.display='inline'; Codehighlighter1_749_813_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">try</SPAN><SPAN id=Codehighlighter1_749_813_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_749_813_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080">28</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>      filterChain.doFilter(request,response); </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 閫掍氦璐d換閾句笅涓鐜?/SPAN><SPAN style="COLOR: #008000"><BR></SPAN><SPAN style="COLOR: #008080">29</SPAN><SPAN style="COLOR: #008000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top></SPAN><SPAN style="COLOR: #000000">    }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">30</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_838_881_Open_Image onclick="this.style.display='none'; Codehighlighter1_838_881_Open_Text.style.display='none'; Codehighlighter1_838_881_Closed_Image.style.display='inline'; Codehighlighter1_838_881_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_838_881_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_838_881_Closed_Text.style.display='none'; Codehighlighter1_838_881_Open_Image.style.display='inline'; Codehighlighter1_838_881_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">catch</SPAN><SPAN style="COLOR: #000000">(Exception ex)</SPAN><SPAN id=Codehighlighter1_838_881_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_838_881_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080">31</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>      logger.error(ex.getMessage());<BR></SPAN><SPAN style="COLOR: #008080">32</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">33</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>  }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">34</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">35</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_911_915_Open_Image onclick="this.style.display='none'; Codehighlighter1_911_915_Open_Text.style.display='none'; Codehighlighter1_911_915_Closed_Image.style.display='inline'; Codehighlighter1_911_915_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_911_915_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_911_915_Closed_Text.style.display='none'; Codehighlighter1_911_915_Open_Image.style.display='inline'; Codehighlighter1_911_915_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> destroy()</SPAN><SPAN id=Codehighlighter1_911_915_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_911_915_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080">36</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>  }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">37</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">38</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV><BR>FilterServlet鍐呴儴搴旇浣跨敤璐d換閾撅紙Chain of Responsibility錛夊疄鐜幫紝鍦ㄨ繖閲屾垜浠妸瀵瑰瓧絎︿覆鐨勮漿鐮佸仛涓鴻矗浠婚摼涓殑涓鐜紝浠庝笂涓鐜嬁鍒皉equest錛屽鐞嗗悗浜ょ粰閾劇殑涓嬩竴鐜傚彟澶栭渶瑕佸湪web.xml閲屽仛浜涢厤緗細<BR><BR> <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">filter</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">filter-name</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">charsetfilter</SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">filter-name</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">filter-class</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">pqp.servlet.CharsetFilter</SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">filter-class</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">filter</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">filter-mapping</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">filter-name</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">charsetfilter</SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">filter-name</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">url-pattern</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">/*</SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">url-pattern</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">dispatcher</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">REQUEST</SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">dispatcher</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">filter-mapping</SPAN><SPAN style="COLOR: #0000ff">></SPAN></DIV><BR>鍏朵腑鈥淩EQUEST鈥濇寚瀹氫簡filter鎷︽埅鐨勭被鍨嬶紝鏈塕EQUEST銆丗ORWARD銆丒RROR鍜孖NCLUDE錛屽彲緇勫悎閫夋嫨錛屼竴鑸塕EQUEST銆傚叏閮ㄨ緗ソ鍚庨噸鏂版墦鍖呫侀儴緗詫紝榪欐牱Servlet灝卞彲浠ヨ嚜鍔ㄦ妸鎵鏈夌殑request杞崲涓篏BK鐨勫瓧絎﹂泦浜嗭紝鏄笉鏄緢鏂逛究錛?IMG height=19 src="http://m.tkk7.com/Emoticons/teeth_smile.gif" width=19 border=0>浣嗗湪榪欓噷鍔犱簡filter鍚庡鎬ц兘鏂歸潰鐨勫獎鍝嶆湭鐭ワ紝澶у鍙互璁ㄨ涓涓嬨?img src ="http://m.tkk7.com/fidodido/aggbug/18185.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/fidodido/" target="_blank">^ Mustang ^</a> 2005-11-04 19:42 <a href="http://m.tkk7.com/fidodido/archive/2005/11/04/18185.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>java.util.Calendar涓殑闄烽槺http://m.tkk7.com/fidodido/archive/2005/10/24/16604.html^ Mustang ^^ Mustang ^Mon, 24 Oct 2005 09:23:00 GMThttp://m.tkk7.com/fidodido/archive/2005/10/24/16604.htmlhttp://m.tkk7.com/fidodido/comments/16604.htmlhttp://m.tkk7.com/fidodido/archive/2005/10/24/16604.html#Feedback2http://m.tkk7.com/fidodido/comments/commentRss/16604.htmlhttp://m.tkk7.com/fidodido/services/trackbacks/16604.html闇姹傦細
浠庤緭鍏ユ寰楀埌鐢ㄦ埛鍒嗗紑杈撳叆鐨勫勾銆佹湀銆佹棩錛屽皢淇℃伅鍋氫負Date綾誨瀷鎻掑叆鏁版嵁搴?/P>

瑙e喅涓錛?/P>

InputBean bean = new InputBean(); // 灝佽鐢ㄦ埛杈撳叆

// 鑾峰彇鐢ㄦ埛杈撳叆錛屽皝瑁呬簬bean瀵硅薄涓?/SPAN>

Calendar cal 
= Calendar.getInstance();
cal.set(cal.YEAR,bean.getYear()); 
// Year
cal.set(cal.MONTH,bean.getMonth()); // Month
cal.set(cal.DAY_OF_MONTH,bean.getDay()); // Day

// 鏁版嵁搴撴搷浣?/SPAN>

闄烽槺錛?BR>Calendar涓殑MONTH瀛楁鍜屾暟緇勪笅鏍囦竴鏍鳳紝浠?寮濮嬶紝0浠h〃Calendar.JANUARY錛?浠h〃Calendar.FEBUARY鈥︹?2浠h〃嬈″勾Calendar.JANUARY銆傚洜姝ょ敤鎴瘋緭鍏ョ殑鏈堜喚鍦ㄧ疆鍏alendar瀵硅薄涔嬪墠蹇呴』榪涜澶勭悊錛屽嵆鍑忎竴銆?BR>
瑙e喅浜岋細

InputBean bean = new InputBean(); // 灝佽鐢ㄦ埛杈撳叆

// 鑾峰彇鐢ㄦ埛杈撳叆錛屽皝瑁呬簬bean瀵硅薄涓?/SPAN>

Calendar cal 
= Calendar.getInstance();
cal.set(cal.YEAR,bean.getYear()); 
// Year
cal.set(cal.MONTH,bean.getMonth() - 1); // Month
cal.set(cal.DAY_OF_MONTH,bean.getDay()); // Day

// 鏁版嵁搴撴搷浣?/SPAN>


^ Mustang ^ 2005-10-24 17:23 鍙戣〃璇勮
]]>
濂囨殑鑼冨瀷瀹氫箟http://m.tkk7.com/fidodido/archive/2005/10/19/15971.html^ Mustang ^^ Mustang ^Wed, 19 Oct 2005 10:14:00 GMThttp://m.tkk7.com/fidodido/archive/2005/10/19/15971.htmlhttp://m.tkk7.com/fidodido/comments/15971.htmlhttp://m.tkk7.com/fidodido/archive/2005/10/19/15971.html#Feedback1http://m.tkk7.com/fidodido/comments/commentRss/15971.htmlhttp://m.tkk7.com/fidodido/services/trackbacks/15971.html
public static <T> void sort(List<T> list,  Comparator<? super T> c)
1銆佹棦鐒惰鏂規硶鏃犺繑鍥炲鹼紙void錛夛紝絎竴涓?lt;T>鈥濇湁浠涔堜綔鐢紵
2銆佲?鈥濅唬琛ㄤ粈涔堝惈涔夛紵
3銆佲渟uper鈥濊搗浠涔堜綔鐢紵
4銆佸熀浜?銆?錛氣?lt;? super T>鈥濆浣曠悊瑙o紵

public static <T extends Comparable<? super T>> void sort(List<T> list)
1銆佲渆xtends鈥濆浣曠悊瑙o紵
2銆佸叾浣欏悓涓?img src ="http://m.tkk7.com/fidodido/aggbug/15971.html" width = "1" height = "1" />

^ Mustang ^ 2005-10-19 18:14 鍙戣〃璇勮
]]>
Java Concurrent妗嗘灦涔嬮樆濉為槦鍒楋紙Blocking queue錛?/title><link>http://m.tkk7.com/fidodido/archive/2005/10/11/15269.html</link><dc:creator>^ Mustang ^</dc:creator><author>^ Mustang ^</author><pubDate>Tue, 11 Oct 2005 08:56:00 GMT</pubDate><guid>http://m.tkk7.com/fidodido/archive/2005/10/11/15269.html</guid><wfw:comment>http://m.tkk7.com/fidodido/comments/15269.html</wfw:comment><comments>http://m.tkk7.com/fidodido/archive/2005/10/11/15269.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/fidodido/comments/commentRss/15269.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/fidodido/services/trackbacks/15269.html</trackback:ping><description><![CDATA[     鎽樿: 寮曞瓙錛氬ぇ瀹朵笂榪囨搷浣滅郴緇熺殑閮界煡閬撯滅敓浜ц咃紞娑堣垂鑰咃紙Producer-Consumer錛夆濇ā鍨嬶紝涓昏璁ㄨ鐨勬槸榪涚▼錛堢嚎紼嬶級闂寸殑浜掓枼鍜屽悓姝ラ棶棰橈紝鍏抽敭鏄閿侊紙lock錛夌殑鐢寵銆佺嫭鍗犲拰閲婃斁錛屽湪榪欓噷鎴戝氨涓嶇綏鍡︿簡銆傚師鍏堟垜鍐欑殑Java浠g爜濡備笅錛?public class Producer extends Thread{  private Pro...  <a href='http://m.tkk7.com/fidodido/archive/2005/10/11/15269.html'>闃呰鍏ㄦ枃</a><img src ="http://m.tkk7.com/fidodido/aggbug/15269.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/fidodido/" target="_blank">^ Mustang ^</a> 2005-10-11 16:56 <a href="http://m.tkk7.com/fidodido/archive/2005/10/11/15269.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Java code namehttp://m.tkk7.com/fidodido/archive/2005/10/10/15181.html^ Mustang ^^ Mustang ^Mon, 10 Oct 2005 14:54:00 GMThttp://m.tkk7.com/fidodido/archive/2005/10/10/15181.htmlhttp://m.tkk7.com/fidodido/comments/15181.htmlhttp://m.tkk7.com/fidodido/archive/2005/10/10/15181.html#Feedback0http://m.tkk7.com/fidodido/comments/commentRss/15181.htmlhttp://m.tkk7.com/fidodido/services/trackbacks/15181.html VERSION CODE NAME   RELEASE DATE JDK 1.1.4 Sparkler Sept 12, 1997 JDK 1.1.5 Pumpkin Dec 3, 1997 JDK 1.1.6 Abigail April 24, 1998 JDK 1.1.7 Brutus Sept 28, 1998 JDK 1.1.8 Chelsea April 8, 1999 J2SE 1.2 Playground Dec 4, 1998 J2SE 1.2.1 (none) March 30, 1999 J2SE 1.2.2 Cricket July 8, 1999 J2SE 1.3 Kestrel May 8, 2000 J2SE 1.3.1 Ladybird May 17, 2001 J2SE 1.4.0 Merlin Feb 13, 2002 J2SE 1.4.1 Hopper Sept 16, 2002 J2SE 1.4.2 Mantis June 26, 2003 J2SE 5.0 (1.5.0) Tiger Sept 29, 2004
Future Releases J2SE 6.0 (1.6.0) Mustang Not yet released J2SE 7.0 (1.7.0) Dolphin Not yet released

^ Mustang ^ 2005-10-10 22:54 鍙戣〃璇勮
]]>
Tomcat 5.5.9 涓嶆敮鎸乻witch(&lt;enum&gt;)錛?/title><link>http://m.tkk7.com/fidodido/archive/2005/09/19/13439.html</link><dc:creator>^ Mustang ^</dc:creator><author>^ Mustang ^</author><pubDate>Mon, 19 Sep 2005 10:51:00 GMT</pubDate><guid>http://m.tkk7.com/fidodido/archive/2005/09/19/13439.html</guid><wfw:comment>http://m.tkk7.com/fidodido/comments/13439.html</wfw:comment><comments>http://m.tkk7.com/fidodido/archive/2005/09/19/13439.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.tkk7.com/fidodido/comments/commentRss/13439.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/fidodido/services/trackbacks/13439.html</trackback:ping><description><![CDATA[ServiceExceptionType錛?BR> <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">package</SPAN><SPAN style="COLOR: #000000"> pqp.service;<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG id=Codehighlighter1_54_125_Open_Image onclick="this.style.display='none'; Codehighlighter1_54_125_Open_Text.style.display='none'; Codehighlighter1_54_125_Closed_Image.style.display='inline'; Codehighlighter1_54_125_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_54_125_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_54_125_Closed_Text.style.display='none'; Codehighlighter1_54_125_Open_Image.style.display='inline'; Codehighlighter1_54_125_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">enum</SPAN><SPAN style="COLOR: #000000"> ServiceExceptionType</SPAN><SPAN id=Codehighlighter1_54_125_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_54_125_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  DB_FAILURE<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>      ,USER_EXISTED<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>      ,INVALID_USERNAME_OR_PASSWORD<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN></DIV><BR>鍦ㄦ柊鐢ㄦ埛娉ㄥ唽鐨勯昏緫鏂規硶涓細媯鏌ョ敤鎴峰悕鏄惁宸插瓨鍦紝瀛樺湪鐨勮瘽鎶涘嚭ServiceException錛屽茍灝哠erviceExceptionType灝佽榪涘幓銆俛ction鐨別xcute涓嶅鐞哠erviceException錛屾帴鐫寰澶栨墧錛屾渶鍚庣敱error.jsp澶勭悊錛?BR> <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000"><%</SPAN><SPAN style="COLOR: #000000">@ page contentType</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">text/html; charset=GBK</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">%></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><%</SPAN><SPAN style="COLOR: #000000">@ page isErrorPage</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">true</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">%></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><%</SPAN><SPAN style="COLOR: #000000">@ page </SPAN><SPAN style="COLOR: #0000ff">import</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">pqp.service.*</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">%></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><%</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>ServiceException ex</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">(ServiceException)exception;<BR><IMG id=Codehighlighter1_188_270_Open_Image onclick="this.style.display='none'; Codehighlighter1_188_270_Open_Text.style.display='none'; Codehighlighter1_188_270_Closed_Image.style.display='inline'; Codehighlighter1_188_270_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_188_270_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_188_270_Closed_Text.style.display='none'; Codehighlighter1_188_270_Open_Image.style.display='inline'; Codehighlighter1_188_270_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">switch</SPAN><SPAN style="COLOR: #000000">(ex.getType())</SPAN><SPAN id=Codehighlighter1_188_270_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_188_270_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">case</SPAN><SPAN style="COLOR: #000000"> USER_EXISTED:<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  out.println(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">鏃犳硶娉ㄥ唽錛氱敤鎴峰悕鈥?/SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">ex.getMessage()</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">鈥濆凡瀛樺湪</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff">break</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">%></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV><BR>緇撴灉緙栬瘧鐨勬椂鍊欐姤閿欙細<BR><IMG height=610 alt=tomcat.png src="http://m.tkk7.com/images/blogjava_net/fidodido/2598/tomcat.png" width=761 border=0><BR><BR>闅鵑亾Tomcat 5.5.9涓嶆敮鎸佸enumeration榪涜switch鎿嶄綔錛?img src ="http://m.tkk7.com/fidodido/aggbug/13439.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/fidodido/" target="_blank">^ Mustang ^</a> 2005-09-19 18:51 <a href="http://m.tkk7.com/fidodido/archive/2005/09/19/13439.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Joshua Bloch鍜廡iger璇楀叓棣?/title><link>http://m.tkk7.com/fidodido/archive/2005/09/08/12445.html</link><dc:creator>^ Mustang ^</dc:creator><author>^ Mustang ^</author><pubDate>Thu, 08 Sep 2005 08:59:00 GMT</pubDate><guid>http://m.tkk7.com/fidodido/archive/2005/09/08/12445.html</guid><wfw:comment>http://m.tkk7.com/fidodido/comments/12445.html</wfw:comment><comments>http://m.tkk7.com/fidodido/archive/2005/09/08/12445.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/fidodido/comments/commentRss/12445.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/fidodido/services/trackbacks/12445.html</trackback:ping><description><![CDATA[<P>鈥淓ase of Development鈥濇槸J2SE 1.5鐨勪富瑕佸崠鐐廣備負姝わ紝榪欎竴鐗堟湰鍔犲叆浜嗕竷縐嶆柊鐨勮璦鐗規р斺擡nhanced for Loop銆丄utoboxing/Auto-Unboxing銆乂arargs銆丼tatic Import銆丒numeration銆丮etadata鍜孏enerics銆備嬌鐢ㄨ繖浜涚壒鎬э紝鍙互璁╃紪鍐欏嚭鏉ョ殑紼嬪簭鏇寸畝緇冦佹洿娓呮櫚銆佹洿涓嶅鏄撳嚭閿欙紝浠庤岀畝鍖栧紑鍙戠殑榪囩▼銆?/P> <P>Joshua Bloch錛堛奅ffective Java銆嬬殑浣滆咃紝J2SE 1.5鐨勪富瑕佸紑鍙戜漢鍛樹箣涓錛夋晥浠縒illiam Blake錛?757-1827錛岃嫳鍥借瘲浜猴級鐨勩?A >Tiger</A>銆嬩竴璇楋紝涓鴻繖浜涚壒鎬ф挵鍐欎簡榪欐牱涓緇勮瘲綃囷細</P> <H4 class=major>鍜廡iger</H4> <BLOCKQUOTE>Tiger, Tiger burning bright<BR>Like a geek who works all night<BR>What new-fangled bit or byte<BR>Could ease the hacker"s weary plight?<BR></BLOCKQUOTE> <P>榪欎竴棣栨槸鎬昏Tiger涓殑鑳戒嬌寮鍙戝彉寰楃畝鍗曠殑鍚勭鏂拌璦鐗規с?/P> <H4 class=major>鍜廍nhanced for Loop</H4> <BLOCKQUOTE>While Iterators have their uses<BR>They sometimes strangle us like nooses<BR>With enhanced-for"s deadly ray<BR>Iterator"s kept at bay<BR></BLOCKQUOTE> <P>榪欎竴棣栧崟琛‥nhanced for Loop鏈哄埗鎻愪緵浜嗕竴縐嶆洿綆鍗曠殑閬嶅巻鏁扮粍銆丆ollection鍜屽叾瀹冨疄鐜頒簡java.lang.Iterable鎺ュ彛鐨勫璞$殑鏂規硶銆?/P> <H4 class=major>鍜廇utoboxing/Auto-Unboxing</H4> <BLOCKQUOTE>When from the collections ints are drawn<BR>Wrapper classes make us mourn<BR>When Tiger comes, we"ll shed no tears<BR>We"ll autobox them in the ears<BR></BLOCKQUOTE> <P>榪欎竴棣栧崟琛ˋutoboxing鏈哄埗/Auto-Unboxing鎻愪緵浜嗕竴縐嶆洿綆鍗曠殑鏁村悎涓ゅ涓嶅悓鐨勭被鍨嬬郴緇燂紙鍩烘湰綾誨瀷鍜屽紩鐢ㄧ被鍨嬶級鐨勬満鍒躲?/P> <H4 class=major>鍜廣arargs</H4> <BLOCKQUOTE>O joyless nights, o joyless days<BR>Our programs cluttered with arrays<BR>With varargs here, we needn"t whine;<BR>We"ll simply put the args inline<BR></BLOCKQUOTE> <P>榪欎竴棣栧崟琛╒arargs鏈哄埗鎻愪緵浜嗕竴縐嶆洿綆鍗曠殑浼犻掍釜鏁板彲鍙樼殑瀹炲弬鐨勬柟娉曘?/P> <H4 class=major>鍜廠tatic Import</H4> <BLOCKQUOTE>And from the constant interface<BR>We shall inherit no disgrace<BR>With static import at our side<BR>Our joy will be unqualified<BR></BLOCKQUOTE> <P>榪欎竴棣栧崟琛⊿tatic Import鏈哄埗鎻愪緵浜嗕竴縐嶆洿綆鍗曠殑璁塊棶闈欐佹垚鍛樼殑鏈哄埗銆?/P> <H4 class=major>鍜廍numeration</H4> <BLOCKQUOTE>The int-enum will soon be gone<BR>Like a foe we"ve known too long.<BR>With type safe-enum"s mighty power<BR>Our foe will bother us no more<BR></BLOCKQUOTE> <P>榪欎竴棣栧崟琛‥numeration鏈哄埗鎻愪緵浜嗕竴縐嶆洿綆鍗曠殑瀹氫箟鈥滅被鍨嬪畨鍏ㄧ殑鏋氫婦綾燴濈殑鏂規硶銆?/P> <H4 class=major>鍜廙etadata</H4> <BLOCKQUOTE>As for noble metadata<BR>I"ll have to sing its praises later<BR>Its uses are so numerous<BR>To give their due, I"d miss the bus<BR></BLOCKQUOTE> <P>榪欎竴棣栧崟琛∕etadata鏈哄埗鎻愪緵浜嗕竴縐嶆洿綆鍗曠殑瀹氫箟鈥滄満鍣ㄥ彲璇葷殑璇存槑淇℃伅鈥濈殑鏈哄埗銆?/P> <H4 class=major>鍜廏enerics</H4> <BLOCKQUOTE>To the most despised collections" cast<BR>We"ll bid a fond farewell at last<BR>With generics" burning spear<BR>The need for cast will disappear<BR></BLOCKQUOTE> <P>榪欎竴棣栨槸璇寸敤Generics鏈哄埗錛屽彲浠ュ厤鍘誨緢澶氬己鍒剁被鍨嬭漿鍖栫殑姝ラ鐨勪簨鎯呫侴enerics鏈哄埗榪樻湁浜涘叾瀹冪敤娉曪紝鍦ㄨ繖閲屾病鏈夋彁鍒般?/P><img src ="http://m.tkk7.com/fidodido/aggbug/12445.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/fidodido/" target="_blank">^ Mustang ^</a> 2005-09-08 16:59 <a href="http://m.tkk7.com/fidodido/archive/2005/09/08/12445.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鎺ュ彛涓嶰bject綾葷殑鍏崇郴錛?/title><link>http://m.tkk7.com/fidodido/archive/2005/08/19/10506.html</link><dc:creator>^ Mustang ^</dc:creator><author>^ Mustang ^</author><pubDate>Fri, 19 Aug 2005 05:53:00 GMT</pubDate><guid>http://m.tkk7.com/fidodido/archive/2005/08/19/10506.html</guid><wfw:comment>http://m.tkk7.com/fidodido/comments/10506.html</wfw:comment><comments>http://m.tkk7.com/fidodido/archive/2005/08/19/10506.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://m.tkk7.com/fidodido/comments/commentRss/10506.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/fidodido/services/trackbacks/10506.html</trackback:ping><description><![CDATA[浠婂ぉ鍑屾櫒coding鐨勬椂鍊欏彂鐜頒竴涓緢鏈夎叮鐨勭幇璞°傗淥bject綾繪槸Java浣撶郴鐨勫崟鏍圭埗鑺傜偣錛屾墍鏈塉ava綾婚兘浠嶰bject綾葷戶鎵褲傗濊繖鍙ヨ瘽鏄ぇ閮ㄥ垎green hand閮界煡閬撶殑Java閲戝彞錛屾瘚搴哥疆鐤戙傞偅濡傛灉鎴戦棶浣犳帴鍙e拰Object綾葷殑鍏崇郴鍛紵絳旀鏄滄病鏈夊叧緋燴濄傝鐪嬩笅闈㈢殑浠g爜錛?BR><BR> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><SPAN style="COLOR: #008080">1</SPAN><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">Map map </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> HashMap();<BR></SPAN><SPAN style="COLOR: #008080">2</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>map.clone();</SPAN></DIV></DIV><BR>Map鏄竴涓帴鍙o紝HashMap鏄竴涓被銆俢lone()鏂規硶鍦∣bject綾諱腑瀹氫箟錛屽洜姝ゆ垜涓嬫剰璇嗚涓虹浜岃鍙互榪欎箞鍐欍傜粨鏋滅紪璇戝櫒鎶ラ敊錛歝lone()鏂規硶鏈畾涔夈傝繖涓敊璇鎴戝緢閮侀椃錛岀湅浜嗗崐澶ヾoc鎵嶅彂紲ュ師鏉ap鏄竴涓帴鍙o紝鑰屾帴鍙e拰Object綾繪病鏈変換浣曞叧緋伙紝鎵浠ap涔熷氨娌℃湁緇ф壙clone()銆備簬鏄妸浠g爜鏀規垚涓嬮潰鐨勬牱瀛愶細<BR><BR> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><SPAN style="COLOR: #008080">1</SPAN><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">HashMap map </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> HashMap();<BR></SPAN><SPAN style="COLOR: #008080">2</SPAN><SPAN style="COLOR: #000000"><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>map.clone();</SPAN></DIV></DIV><BR>榪欐牱灝卞彲浠ヤ簡銆?img src ="http://m.tkk7.com/fidodido/aggbug/10506.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/fidodido/" target="_blank">^ Mustang ^</a> 2005-08-19 13:53 <a href="http://m.tkk7.com/fidodido/archive/2005/08/19/10506.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>class鏂囦歡涓殑縐樺瘑http://m.tkk7.com/fidodido/archive/2005/08/04/9184.html^ Mustang ^^ Mustang ^Thu, 04 Aug 2005 04:50:00 GMThttp://m.tkk7.com/fidodido/archive/2005/08/04/9184.htmlhttp://m.tkk7.com/fidodido/comments/9184.htmlhttp://m.tkk7.com/fidodido/archive/2005/08/04/9184.html#Feedback1http://m.tkk7.com/fidodido/comments/commentRss/9184.htmlhttp://m.tkk7.com/fidodido/services/trackbacks/9184.html浣犵煡閬揷lass鏂囦歡浠?6榪涘埗鏂瑰紡鏌ョ湅澶?涓瓧鑺傛槸浠涔堟暟鎹悧錛熲淐AFEBABE鈥濄傛病閿欙紝Cafe Baby銆備笉淇★紵鐢║ltraEdit鎵撳紑浠諱綍涓涓猚lass鏂囦歡鑷繁鐪嬬湅鍚?/P>

^ Mustang ^ 2005-08-04 12:50 鍙戣〃璇勮
]]>
static涓巉inal鍙橀噺http://m.tkk7.com/fidodido/archive/2005/08/04/9179.html^ Mustang ^^ Mustang ^Thu, 04 Aug 2005 04:27:00 GMThttp://m.tkk7.com/fidodido/archive/2005/08/04/9179.htmlhttp://m.tkk7.com/fidodido/comments/9179.htmlhttp://m.tkk7.com/fidodido/archive/2005/08/04/9179.html#Feedback0http://m.tkk7.com/fidodido/comments/commentRss/9179.htmlhttp://m.tkk7.com/fidodido/services/trackbacks/9179.html涓銆乮llegal forward refrence

鍓嶅ぉ鍐欎竴涓被鏃墮亣鍒頒竴涓緢鐪肩敓鐨勭紪璇戦敊璇紙闂綆鍖栧悗錛夛細

1punlic final class Constants{
2  public static int VAR2 = VAR1 + 1;
3  public static int VAR1 = 1;
4}

緙栬瘧鏃跺嚭閿欙紙絎?琛岋級錛?/P>

illegal forward refrence

浠旂粏涓鎯籌紝鏄洜涓篤AR2寮曠敤鐨刅AR1鍦╒AR2涔嬪悗瀹氫箟錛岀湅鏉ュ湪Java涓畾涔塻tatic鍙橀噺鏃跺簲閬靛驚鈥滃0鏄庡厛浜庝嬌鐢ㄢ濈殑鍘熷垯銆?BR>

 

浜屻乻tatic鍧?/H4>

榪樻槸涓婁竴涓被錛孷AR1鍜孷AR2瀹氫箟鎴恌inal錛屽煎瓨鍦ㄤ竴涓猵roperties鏂囦歡涓紝鍦ㄤ嬌鐢ㄥ墠蹇呴』灝嗗糽oad榪涙潵錛?/P>

System.getProperties().load(new FileInputStream("constants.properties"));

浜庢槸灝嗕笂闈㈢殑浠g爜鏀懼湪static鍧椾腑錛?BR>

punlic final class Constants{
  
static{
    System.getProperties().load(
new FileInputStream("constants.properties"));
  }


  
public static final int VAR2 = System.getProperties().getProperty("var2");

  
public static final int VAR1 = System.getProperties().getProperty("var1");
}


浣嗗湪榪愯鏃禫AR1鍜孷AR2娌℃湁琚祴鍊鹼紝debug鍚庡彂鐜皊tatic鍧楁牴鏈病鏈夋墽琛屻備簬鏄】鎮燂細final鍙橀噺鍦ㄧ紪璇戞椂渚胯緙栬瘧鍣ㄨ綆椼佽祴鍊鹼紝鍥犳鍦ㄨ繍琛屾椂娌℃湁蹇呰鎵цstatic鍧椼?/P>

]]>JBuilder 2005涓殑Servlet mappinghttp://m.tkk7.com/fidodido/archive/2005/02/13/1149.html^ Mustang ^^ Mustang ^Sun, 13 Feb 2005 14:30:00 GMThttp://m.tkk7.com/fidodido/archive/2005/02/13/1149.htmlhttp://m.tkk7.com/fidodido/comments/1149.htmlhttp://m.tkk7.com/fidodido/archive/2005/02/13/1149.html#Feedback0http://m.tkk7.com/fidodido/comments/commentRss/1149.htmlhttp://m.tkk7.com/fidodido/services/trackbacks/1149.html


]]>
java.util.StringTokenizationhttp://m.tkk7.com/fidodido/archive/2005/02/13/1148.html^ Mustang ^^ Mustang ^Sun, 13 Feb 2005 14:29:00 GMThttp://m.tkk7.com/fidodido/archive/2005/02/13/1148.htmlhttp://m.tkk7.com/fidodido/comments/1148.htmlhttp://m.tkk7.com/fidodido/archive/2005/02/13/1148.html#Feedback1http://m.tkk7.com/fidodido/comments/commentRss/1148.htmlhttp://m.tkk7.com/fidodido/services/trackbacks/1148.html銆傛垜鎻愯浠栫敤java.util.StringTokenization綾匯傞偅涓被浣跨敤璧鋒潵寰堟柟渚匡細
StringTokenizer st = new StringTokenizer("this is a test"," ");
while (st.hasMoreTokens()) {
  System.
out.println(st.nextToken());
}

 
杈撳嚭錛?BR>
this
is
a
test

錛堟瀯閫犲櫒涓浜屼釜瀛楃涓叉槸鍒嗛殧絎︾殑闆嗗悎錛岄粯璁ゆ槸絀烘牸錛?B>


]]>
鍦↗ava涓嬌鐢∣racle blobhttp://m.tkk7.com/fidodido/archive/2005/02/13/1145.html^ Mustang ^^ Mustang ^Sun, 13 Feb 2005 14:27:00 GMThttp://m.tkk7.com/fidodido/archive/2005/02/13/1145.htmlhttp://m.tkk7.com/fidodido/comments/1145.htmlhttp://m.tkk7.com/fidodido/archive/2005/02/13/1145.html#Feedback0http://m.tkk7.com/fidodido/comments/commentRss/1145.htmlhttp://m.tkk7.com/fidodido/services/trackbacks/1145.htmlOracle涓殑lob (Large Object)鍙互瀛樺偍闈炲父澶х殑鏁版嵁錛堝彲鑳芥槸4GB錛夛紝榪欐牱灝卞彲浠ラ氳繃灝嗘枃浠舵垨鍏跺畠浠諱綍瀵硅薄搴忓垪鍖栨垚瀛楄妭杈撳嚭嫻?OutputStream)鍚庡啓鍏ユ暟鎹簱錛屼箣鍚庝嬌鐢ㄥ瓧鑺傝緭鍏ユ祦(InputStream)灝嗘暟鎹鍑虹劧鍚庡弽搴忓垪鍖栦負鍘熷鏂囦歡鎴栧璞°傛搷浣滄椂闇瑕佷嬌鐢╫racle鐨凧DBC鍖咃紝瀹冩墿灞曚簡sun鐨凧DBC鍖呬腑鐨凚lob瀵硅薄銆傚悓鏃墮渶瑕佹敞鎰忎竴浜涚粏鑺傘備笅闈㈢殑浠g爜婕旂ず濡備綍浣跨敤blob錛堝疄渚嬩腑闇瑕丱racle鐨凧DBC鍖咃級銆?BR>

 1import oracle.jdbc.OracleResultSet;  // 浣跨敤Oracle鐨凴esultSet瀵硅薄
 2import oracle.sql.BLOB;  // 浣跨敤Oracle鐨凚LOB瀵硅薄錛岃屼笉鏄痵un鐨凚lob
 3
 4
 5
 6try{
 7  Connection conn=<鏁版嵁搴撹繛鎺?/SPAN>>;
 8  File file=<瀛樺叆鏁版嵁搴撶殑鏂囦歡瀵硅薄>;
 9  conn.setAutoCommit(false);  // 鍙栨秷Connection瀵硅薄鐨刟uto commit灞炴?/SPAN>
10  String file_name=file.getName();
11
12  // 鏁版嵁搴撲腑鏈変竴涓猧tem琛紝鍏朵腑鐨刦ile_name (varchar2)瀛樺偍鏂囦歡鍚嶏紝file_blob (blob)瀛樺偍鏂囦歡瀵硅薄
13  String sql="INSERT INTO item (file_name,file_blob) VALUES ('" + file_name + "',EMPTY_BLOB())";  // 浣跨敤鈥淓MPTY_BLOB()鈥滄垚鐢熶竴涓┖blob
14  Statement stmt=conn.createStatement();
15  int count=stmt.executeUpdate(sql);
16  
17  sql="SELECT file_blob FROM item WHERE iid='" + iid + "' FOR UPDATE";  // 浣跨敤鈥淔OR UPDATE鈥濆緱鍒拌〃鐨勫啓閿?/SPAN>
18  ResultSet rs=stmt.executeQuery(sql);
19  rs.next();
20  BLOB blob=((OracleResultSet)rs).getBLOB("file_blob");  // 寰楀埌BLOB瀵硅薄
21  OutputStream out=blob.getBinaryOutputStream();  // 寤虹珛杈撳嚭嫻?/SPAN>
22  InputStream in=new FileInputStream(file);  // 寤虹珛杈撳叆嫻?/SPAN>
23  int size=blob.getBufferSize();
24  byte[] buffer=new byte[size];  // 寤虹珛緙撳啿鍖?/SPAN>
25  int len;
26  while((len=in.read(buffer)) != -1)
27    out.write(buffer,0,len);
28  in.close();
29  out.close();
30
31  conn.commit();
32}

33catch(Exception ex){
34  try{
35    conn.rollback();
36  }

37  catch(SQLException sqle){
38    System.err.println(sqle.getMessage());
39  }

40}

41
42

濡傛灉瑕佽鍑烘枃浠剁殑璇濆彧闇璋冪敤BLOB鐨刧etBinaryStream()鐢熸垚涓涓緭鍏ユ祦錛屽啀鍐欏叆涓涓枃浠跺氨琛屼簡銆?/FONT>



]]>
主站蜘蛛池模板: 亚洲一级片在线播放| 亚洲国产另类久久久精品| 亚洲精品国产V片在线观看| 中文字幕亚洲一区二区va在线| 亚洲色大成网站WWW久久九九 | 国产人妖ts在线观看免费视频| 婷婷综合缴情亚洲狠狠尤物| 国产亚洲精品精华液| 亚洲国产精品xo在线观看| 亚洲AV无码国产精品永久一区| 一级做受视频免费是看美女| 美女内射无套日韩免费播放| 嫩草视频在线免费观看| 久久精品国产亚洲AV不卡| 亚洲高清免费在线观看| 日本亚洲欧美色视频在线播放| 中文字幕免费在线播放| 成人免费的性色视频| 亚洲第一视频在线观看免费| 亚洲天天做日日做天天欢毛片 | 亚洲高清美女一区二区三区| 亚洲国产成人AV网站| 永久免费AV无码网站国产| 成全视频免费高清| 黑人大战亚洲人精品一区| 亚洲一区二区三区不卡在线播放| 免费无码专区毛片高潮喷水| 24小时日本韩国高清免费| 日本黄色免费观看| 久久精品亚洲一区二区三区浴池 | 国产成人高清亚洲| 亚洲女人初试黑人巨高清| 人妻仑乱A级毛片免费看| 美女内射毛片在线看免费人动物| 国产免费黄色大片| 亚洲网红精品大秀在线观看| 免费人妻精品一区二区三区| 国产精品久久久久久久久免费| 亚洲人AV永久一区二区三区久久| 91嫩草亚洲精品| 青柠影视在线观看免费高清|