锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲av无码专区在线电影天堂,亚洲国产成人综合,亚洲大尺度无码无码专线一区http://www.tkk7.com/georgehill/category/1273.html甯屾湜鑳藉拰鎮ㄤ氦嫻丣ava緙栫▼鐨勭煡璇嗗拰瑙佽Вzh-cnTue, 27 Feb 2007 15:53:13 GMTTue, 27 Feb 2007 15:53:13 GMT60鐢盝Component鐢熸垚BufferedImagehttp://www.tkk7.com/georgehill/archive/2006/04/14/41179.html灝忕背灝忕背Fri, 14 Apr 2006 15:41:00 GMThttp://www.tkk7.com/georgehill/archive/2006/04/14/41179.htmlhttp://www.tkk7.com/georgehill/comments/41179.htmlhttp://www.tkk7.com/georgehill/archive/2006/04/14/41179.html#Feedback0http://www.tkk7.com/georgehill/comments/commentRss/41179.htmlhttp://www.tkk7.com/georgehill/services/trackbacks/41179.html
Rectangle聽rect聽=聽comp.getBounds();
聽BufferedImage聽bufImage聽
=new聽BufferedImage(rect.width,
聽聽聽聽聽聽聽聽聽聽聽rect.height,
聽聽聽聽聽聽聽聽聽聽聽BufferedImage.TYPE_INT_RGB);
聽Graphics聽g聽
=聽bufImage.getGraphics();
聽g.translate(
-rect.x,聽-rect.y);
聽comp.paint(g);

榪欐牱錛孞Component涓殑鍥懼儚灝變繚瀛樺埌BufferedImage涓簡銆?br />鍘熸枃鐨勯摼鎺ワ細http://dev.csdn.net/article/13/13531.shtm

灝忕背 2006-04-14 23:41 鍙戣〃璇勮
]]>
濡備綍灝咮ufferedImage瀹炰緥淇濆瓨涓築MP鏂囦歡http://www.tkk7.com/georgehill/archive/2005/07/04/7101.html灝忕背灝忕背Mon, 04 Jul 2005 09:33:00 GMThttp://www.tkk7.com/georgehill/archive/2005/07/04/7101.htmlhttp://www.tkk7.com/georgehill/comments/7101.htmlhttp://www.tkk7.com/georgehill/archive/2005/07/04/7101.html#Feedback2http://www.tkk7.com/georgehill/comments/commentRss/7101.htmlhttp://www.tkk7.com/georgehill/services/trackbacks/7101.html闃呰鍏ㄦ枃

灝忕背 2005-07-04 17:33 鍙戣〃璇勮
]]>
鍏抽棴JBuilder2005鐨凷mart MemberInsight鍔熻兘http://www.tkk7.com/georgehill/archive/2005/06/15/6164.html灝忕背灝忕背Wed, 15 Jun 2005 08:02:00 GMThttp://www.tkk7.com/georgehill/archive/2005/06/15/6164.htmlhttp://www.tkk7.com/georgehill/comments/6164.htmlhttp://www.tkk7.com/georgehill/archive/2005/06/15/6164.html#Feedback0http://www.tkk7.com/georgehill/comments/commentRss/6164.htmlhttp://www.tkk7.com/georgehill/services/trackbacks/6164.html      涓嶈繃錛岃繖瀹炲湪鏄竴涓笉鎬庝箞璁ㄥソ鐨勬柟娉曘傚洜涓哄緢澶氭椂鍊欏茍涓嶆槸鍙湁涓灞傛柟娉曡皟鐢ㄧ殑錛屼緥濡傦紝褰撻渶瑕佺敤涓涓柟娉曡幏鍙栦竴涓疄渚嬶紝鐒跺悗鍐嶇敤榪欎釜瀹炰緥鐨勬柟娉曡幏鍙栭渶瑕佺殑鍊兼椂錛岃繖涓姛鑳藉氨鏄懼緱寰堢鎵嬩簡銆?BR>      緇堜簬錛屾垜榪樻槸鍐沖畾鍏抽棴榪欎釜鈥滄櫤鑳解濈殑鍔熻兘銆傛墦寮"Tools"鈥斺?gt;"Preferences"錛屽湪"Editor"鐨勫瓙欏?CodeInsight"閲岋紝灞曞紑"MemberInsight"錛屾妸"Default to Smart MemberInsight"榪欎竴欏瑰幓鎺夈傚涓嬪浘鎵紺猴細

memberinsight.JPG

灝忕背 2005-06-15 16:02 鍙戣〃璇勮
]]>
鐢↗FreeChart鐢繪煴鐘跺浘鐨勮寖渚?/title><link>http://www.tkk7.com/georgehill/archive/2005/06/14/6123.html</link><dc:creator>灝忕背</dc:creator><author>灝忕背</author><pubDate>Tue, 14 Jun 2005 10:40:00 GMT</pubDate><guid>http://www.tkk7.com/georgehill/archive/2005/06/14/6123.html</guid><wfw:comment>http://www.tkk7.com/georgehill/comments/6123.html</wfw:comment><comments>http://www.tkk7.com/georgehill/archive/2005/06/14/6123.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.tkk7.com/georgehill/comments/commentRss/6123.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/georgehill/services/trackbacks/6123.html</trackback:ping><description><![CDATA[      榪欎釜鑼冧緥璇存槑濡備綍鐢↗FreeChart鐢葷畝鍗曠殑鏌辯姸鍥撅紝涓嬮潰鏄竴涓狫SP鐨勭畝鍗曡寖渚嬶細<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><IMG src="http://www.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=GB2312</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">%></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><%</SPAN><SPAN style="COLOR: #000000">@ page import</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">java.awt.*, java.text.*, java.util.*</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">%></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><%</SPAN><SPAN style="COLOR: #000000">@ page import</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">org.jfree.chart.*</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">%></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><%</SPAN><SPAN style="COLOR: #000000">@ page import</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">org.jfree.chart.axis.*</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">%></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><%</SPAN><SPAN style="COLOR: #000000">@ page import</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">org.jfree.chart.labels.StandardCategoryItemLabelGenerator</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">%></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><%</SPAN><SPAN style="COLOR: #000000">@ page import</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">org.jfree.chart.plot.*</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">%></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><%</SPAN><SPAN style="COLOR: #000000">@ page import</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">org.jfree.chart.renderer.*</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">%></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><%</SPAN><SPAN style="COLOR: #000000">@ page import</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">org.jfree.chart.servlet.ServletUtilities</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">%></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><%</SPAN><SPAN style="COLOR: #000000">@ page import</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">org.jfree.data.DefaultCategoryDataset</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">%></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><%</SPAN><SPAN style="COLOR: #000000">@ page import</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">org.jfree.ui.TextAnchor</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">%></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><%</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">The data for the bar chart</SPAN><SPAN style="COLOR: #008000"><BR><IMG id=Codehighlighter1_583_608_Open_Image onclick="this.style.display='none'; Codehighlighter1_583_608_Open_Text.style.display='none'; Codehighlighter1_583_608_Closed_Image.style.display='inline'; Codehighlighter1_583_608_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_583_608_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_583_608_Closed_Text.style.display='none'; Codehighlighter1_583_608_Open_Image.style.display='inline'; Codehighlighter1_583_608_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">  </SPAN><SPAN style="COLOR: #0000ff">double</SPAN><SPAN style="COLOR: #000000">[] data </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN id=Codehighlighter1_583_608_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://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_583_608_Open_Text><SPAN style="COLOR: #000000">{</SPAN><SPAN style="COLOR: #000000">85</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">156</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">179.5</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">211</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">123</SPAN><SPAN style="COLOR: #000000">}</SPAN></SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">The labels for the bar chart</SPAN><SPAN style="COLOR: #008000"><BR><IMG id=Codehighlighter1_664_698_Open_Image onclick="this.style.display='none'; Codehighlighter1_664_698_Open_Text.style.display='none'; Codehighlighter1_664_698_Closed_Image.style.display='inline'; Codehighlighter1_664_698_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_664_698_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_664_698_Closed_Text.style.display='none'; Codehighlighter1_664_698_Open_Image.style.display='inline'; Codehighlighter1_664_698_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">  String[] labels </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN id=Codehighlighter1_664_698_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://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_664_698_Open_Text><SPAN style="COLOR: #000000">{</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Mon</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Tue</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Wed</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Thu</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Fri</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">}</SPAN></SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  DefaultCategoryDataset dataset </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> DefaultCategoryDataset();<BR><IMG id=Codehighlighter1_809_861_Open_Image onclick="this.style.display='none'; Codehighlighter1_809_861_Open_Text.style.display='none'; Codehighlighter1_809_861_Closed_Image.style.display='inline'; Codehighlighter1_809_861_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_809_861_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_809_861_Closed_Text.style.display='none'; Codehighlighter1_809_861_Open_Image.style.display='inline'; Codehighlighter1_809_861_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff">for</SPAN><SPAN style="COLOR: #000000"> (</SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> i </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">; i </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000"> data.length; i</SPAN><SPAN style="COLOR: #000000">++</SPAN><SPAN style="COLOR: #000000">) </SPAN><SPAN id=Codehighlighter1_809_861_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://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_809_861_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>    dataset.addValue(data[i], </SPAN><SPAN style="COLOR: #0000ff">null</SPAN><SPAN style="COLOR: #000000">, labels[i]);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>  }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  JFreeChart chart </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> ChartFactory.createBarChart3D(</SPAN><SPAN style="COLOR: #000000">"Weekly Server Load"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">"Work Week 25"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">"MBytes"</SPAN><SPAN style="COLOR: #000000">, dataset, PlotOrientation.VERTICAL, </SPAN><SPAN style="COLOR: #0000ff">false</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #0000ff">false</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #0000ff">false</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  chart.setBackgroundPaint(</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> Color(</SPAN><SPAN style="COLOR: #000000">0xE1E1E1</SPAN><SPAN style="COLOR: #000000">));<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  CategoryPlot plot </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> chart.getCategoryPlot();<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 璁劇疆Y杞存樉紺烘暣鏁?/SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">  NumberAxis rangeAxis </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> (NumberAxis) plot.getRangeAxis();<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  CategoryAxis domainAxis </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> plot.getDomainAxis();<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">璁劇疆璺濈鍥劇墖宸︾璺濈</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">  domainAxis.setLowerMargin(</SPAN><SPAN style="COLOR: #000000">0.05</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  BarRenderer3D renderer </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> BarRenderer3D();<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">璁劇疆鏌辯殑棰滆壊</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">  renderer.setSeriesPaint(</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> Color(</SPAN><SPAN style="COLOR: #000000">0xff00</SPAN><SPAN style="COLOR: #000000">));<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  plot.setRenderer(renderer);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  String filename </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> ServletUtilities.saveChartAsPNG(chart, </SPAN><SPAN style="COLOR: #000000">300</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">280</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #0000ff">null</SPAN><SPAN style="COLOR: #000000">, session);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  String graphURL </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> request.getContextPath() </SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">/displayChart?filename=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000"> filename;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">%></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">html</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">body topmargin</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">5</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> leftmargin</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">5</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> rightmargin</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">div style</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">font-size:18pt; font-family:verdana; font-weight:bold</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    3D Bar Chart<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"></</SPAN><SPAN style="COLOR: #000000">div</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">br</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">img src</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"><%= graphURL %></SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> border</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"></</SPAN><SPAN style="COLOR: #000000">body</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"></</SPAN><SPAN style="COLOR: #000000">html</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV> <P><BR>      鐢誨嚭鏉ョ殑鍥撅細<BR><BR><IMG height=280 alt=displayChart.JPG src="http://www.tkk7.com/images/blogjava_net/georgehill/temp/displayChart.JPG" width=300 border=0><BR><BR>      鍜孋hartDirector鐢誨嚭鏉ョ殑鍥懼仛涓涓瘮杈冿細<BR><BR><IMG height=280 alt=threedbar.JPG src="http://www.tkk7.com/images/blogjava_net/georgehill/temp/threedbar.JPG" width=300 border=0><BR></P><img src ="http://www.tkk7.com/georgehill/aggbug/6123.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/georgehill/" target="_blank">灝忕背</a> 2005-06-14 18:40 <a href="http://www.tkk7.com/georgehill/archive/2005/06/14/6123.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鐢–hartDirector鍦↗SP涓敾緇熻鍥?/title><link>http://www.tkk7.com/georgehill/archive/2005/06/14/6118.html</link><dc:creator>灝忕背</dc:creator><author>灝忕背</author><pubDate>Tue, 14 Jun 2005 09:46:00 GMT</pubDate><guid>http://www.tkk7.com/georgehill/archive/2005/06/14/6118.html</guid><wfw:comment>http://www.tkk7.com/georgehill/comments/6118.html</wfw:comment><comments>http://www.tkk7.com/georgehill/archive/2005/06/14/6118.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.tkk7.com/georgehill/comments/commentRss/6118.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/georgehill/services/trackbacks/6118.html</trackback:ping><description><![CDATA[      浠ュ墠涓鐩存槸鐢↗FreeChart鐢葷粺璁″浘鐨勶紝涓嶈繃JFreeChart鐢誨嚭鏉ョ殑鍥懼艦涓嶅綺劇粏錛岀湅璧鋒潵鏈変簺妯$硦錛屼粖澶╁湪緗戜笂鐪嬪埌鍙﹀涓涓伐鍏稢hartDirector錛岃繖鏄竴涓晢涓氱増鏈殑宸ュ叿錛屼笉榪囦篃鍙互鍏嶈垂浣跨敤錛屽彧鏄湪鐢誨嚭鏉ョ殑鍥懼艦涓嬮潰閮芥湁涓鏉″畠鐨勫箍鍛婃潯銆?BR>      涓嬮潰鏄畠鐨勪竴涓煴鐘跺浘鐨勪緥瀛愶細<BR><BR><IMG height=280 alt=threedbar.JPG src="http://www.tkk7.com/images/blogjava_net/georgehill/temp/threedbar.JPG" width=300 border=0><BR>      鑼冧緥紼嬪簭錛?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><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000"><%</SPAN><SPAN style="COLOR: #000000">@page import</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">ChartDirector.*</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">%></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><%</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">The data for the bar chart</SPAN><SPAN style="COLOR: #008000"><BR><IMG id=Codehighlighter1_84_109_Open_Image onclick="this.style.display='none'; Codehighlighter1_84_109_Open_Text.style.display='none'; Codehighlighter1_84_109_Closed_Image.style.display='inline'; Codehighlighter1_84_109_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_84_109_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_84_109_Closed_Text.style.display='none'; Codehighlighter1_84_109_Open_Image.style.display='inline'; Codehighlighter1_84_109_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">double</SPAN><SPAN style="COLOR: #000000">[] data </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN id=Codehighlighter1_84_109_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://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_84_109_Open_Text><SPAN style="COLOR: #000000">{</SPAN><SPAN style="COLOR: #000000">85</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">156</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">179.5</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">211</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">123</SPAN><SPAN style="COLOR: #000000">}</SPAN></SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">The labels for the bar chart</SPAN><SPAN style="COLOR: #008000"><BR><IMG id=Codehighlighter1_162_196_Open_Image onclick="this.style.display='none'; Codehighlighter1_162_196_Open_Text.style.display='none'; Codehighlighter1_162_196_Closed_Image.style.display='inline'; Codehighlighter1_162_196_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_162_196_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_162_196_Closed_Text.style.display='none'; Codehighlighter1_162_196_Open_Image.style.display='inline'; Codehighlighter1_162_196_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">String[] labels </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN id=Codehighlighter1_162_196_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://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_162_196_Open_Text><SPAN style="COLOR: #000000">{</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Mon</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Tue</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Wed</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Thu</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Fri</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">}</SPAN></SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">Create a XYChart object of size 300 x 280 pixels</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">XYChart c </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> XYChart(</SPAN><SPAN style="COLOR: #000000">300</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">280</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">Set the plotarea at (45, 30) and of size 200 x 200 pixels</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">c.setPlotArea(</SPAN><SPAN style="COLOR: #000000">45</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">30</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">200</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">200</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">Add a title to the chart</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">c.addTitle(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Weekly Server Load</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">Add a title to the y axis</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">c.yAxis().setTitle(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">MBytes</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">Add a title to the x axis</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">c.xAxis().setTitle(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Work Week 25</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">Add a bar chart layer with green (0x00ff00) bars using the given data</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">c.addBarLayer(data, </SPAN><SPAN style="COLOR: #000000">0xff00</SPAN><SPAN style="COLOR: #000000">).set3D();<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">Set the labels on the x axis.</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">c.xAxis().setLabels(labels);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">output the chart</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">String chart1URL </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> c.makeSession(request, </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">chart1</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">include tool tip for the chart</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">String imageMap1 </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> c.getHTMLImageMap(</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">"</SPAN><SPAN style="COLOR: #000000">title='{xLabel}: {value} MBytes'</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">)<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    ;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">%></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">html</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">body topmargin</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">5</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> leftmargin</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">5</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> rightmargin</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">div style</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">font-size:18pt; font-family:verdana; font-weight:bold</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    3D Bar Chart<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"></</SPAN><SPAN style="COLOR: #000000">div</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">hr color</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">#000080</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">a href</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">viewsource.jsp?file=<%=request.getServletPath()%></SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">font size</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">2</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> face</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Verdana</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000">View Chart Source Code</SPAN><SPAN style="COLOR: #000000"></</SPAN><SPAN style="COLOR: #000000">font</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"></</SPAN><SPAN style="COLOR: #000000">a</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"></</SPAN><SPAN style="COLOR: #000000">div</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">br</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">img src</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">'</SPAN><SPAN style="COLOR: #000000"><%=response.encodeURL("getchart.jsp?"+chart1URL)%></SPAN><SPAN style="COLOR: #000000">'</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    usemap</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">#map1</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> border</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">map name</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">map1</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">><%=</SPAN><SPAN style="COLOR: #000000">imageMap1</SPAN><SPAN style="COLOR: #000000">%></</SPAN><SPAN style="COLOR: #000000">map</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"></</SPAN><SPAN style="COLOR: #000000">body</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"></</SPAN><SPAN style="COLOR: #000000">html</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV> <P><BR>      濡傛灉瑕佸湪鏌辯殑欏墮儴鏄劇ず鏁板鹼紝鍙互璋冪敤Layer鐨剆etDataLabelFormat鏂規硶璁劇疆錛岃寖渚嬶細layer.setDataLabelFormat("{value}");<BR><BR>      鍏跺畠鐨勪緥瀛愬彲浠ュ弬鑰冨畠鐨勬枃妗g殑璇存槑銆侰hartDirector鐨勭綉鍧錛?A >http://www.advsofteng.com</A></P><img src ="http://www.tkk7.com/georgehill/aggbug/6118.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/georgehill/" target="_blank">灝忕背</a> 2005-06-14 17:46 <a href="http://www.tkk7.com/georgehill/archive/2005/06/14/6118.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鐢╦ava.util.Timer瀹氭椂鎵ц浠誨姟http://www.tkk7.com/georgehill/archive/2005/06/09/5793.html灝忕背灝忕背Thu, 09 Jun 2005 02:29:00 GMThttp://www.tkk7.com/georgehill/archive/2005/06/09/5793.htmlhttp://www.tkk7.com/georgehill/comments/5793.htmlhttp://www.tkk7.com/georgehill/archive/2005/06/09/5793.html#Feedback2http://www.tkk7.com/georgehill/comments/commentRss/5793.htmlhttp://www.tkk7.com/georgehill/services/trackbacks/5793.html      涓嬮潰鏄垜鐨勪竴涓緥瀛愶細

class Worker extends TimerTask {
  
public void run() {
    System.
out.println("鎴戝湪宸ヤ綔鍟︼紒");
  }

}

      Timer綾葷敤schedule鏂規硶鎴栬卻cheduleAtFixedRate鏂規硶鍚姩瀹氭椂鎵ц錛宻chedule閲嶈澆浜嗗洓涓増鏈紝scheduleAtFixedRate閲嶈澆浜嗕袱涓傛瘡涓柟娉曠殑瀹炵幇閮戒笉鍚岋紝涓嬮潰鏄瘡涓柟娉曠殑璇存槑錛?BR>

schedule

public void schedule(TimerTask task,
                     long delay)
Schedules the specified task for execution after the specified delay.

Parameters:
task - task to be scheduled.
delay - delay in milliseconds before task is to be executed.
Throws:
IllegalArgumentException - if delay is negative, or delay + System.currentTimeMillis() is negative.
IllegalStateException - if task was already scheduled or cancelled, or timer was cancelled.
璇存槑錛氳鏂規硶浼氬湪璁懼畾鐨勫歡鏃跺悗鎵ц涓嬈′換鍔°?BR>

schedule

public void schedule(TimerTask task,
                     Date time)
Schedules the specified task for execution at the specified time. If the time is in the past, the task is scheduled for immediate execution.

Parameters:
task - task to be scheduled.
time - time at which task is to be executed.
Throws:
IllegalArgumentException - if time.getTime() is negative.
IllegalStateException - if task was already scheduled or cancelled, timer was cancelled, or timer thread terminated.
璇存槑錛氳鏂規硶浼氬湪鎸囧畾鐨勬椂闂寸偣鎵ц涓嬈′換鍔°?BR>

schedule

public void schedule(TimerTask task,
                     long delay,
                     long period)
Schedules the specified task for repeated fixed-delay execution, beginning after the specified delay. Subsequent executions take place at approximately regular intervals separated by the specified period.

In fixed-delay execution, each execution is scheduled relative to the actual execution time of the previous execution. If an execution is delayed for any reason (such as garbage collection or other background activity), subsequent executions will be delayed as well. In the long run, the frequency of execution will generally be slightly lower than the reciprocal of the specified period (assuming the system clock underlying Object.wait(long) is accurate).

Fixed-delay execution is appropriate for recurring activities that require "smoothness." In other words, it is appropriate for activities where it is more important to keep the frequency accurate in the short run than in the long run. This includes most animation tasks, such as blinking a cursor at regular intervals. It also includes tasks wherein regular activity is performed in response to human input, such as automatically repeating a character as long as a key is held down.

Parameters:
task - task to be scheduled.
delay - delay in milliseconds before task is to be executed.
period - time in milliseconds between successive task executions.
Throws:
IllegalArgumentException - if delay is negative, or delay + System.currentTimeMillis() is negative.
IllegalStateException - if task was already scheduled or cancelled, timer was cancelled, or timer thread terminated.
璇存槑錛氳鏂規硶浼氬湪鎸囧畾鐨勫歡鏃跺悗鎵ц浠誨姟錛屽茍涓斿湪璁懼畾鐨勫懆鏈熷畾鏃舵墽琛屼換鍔°?BR>

schedule

public void schedule(TimerTask task,
                     Date firstTime,
                     long period)
Schedules the specified task for repeated fixed-delay execution, beginning at the specified time. Subsequent executions take place at approximately regular intervals, separated by the specified period.

In fixed-delay execution, each execution is scheduled relative to the actual execution time of the previous execution. If an execution is delayed for any reason (such as garbage collection or other background activity), subsequent executions will be delayed as well. In the long run, the frequency of execution will generally be slightly lower than the reciprocal of the specified period (assuming the system clock underlying Object.wait(long) is accurate).

Fixed-delay execution is appropriate for recurring activities that require "smoothness." In other words, it is appropriate for activities where it is more important to keep the frequency accurate in the short run than in the long run. This includes most animation tasks, such as blinking a cursor at regular intervals. It also includes tasks wherein regular activity is performed in response to human input, such as automatically repeating a character as long as a key is held down.

Parameters:
task - task to be scheduled.
firstTime - First time at which task is to be executed.
period - time in milliseconds between successive task executions.
Throws:
IllegalArgumentException - if time.getTime() is negative.
IllegalStateException - if task was already scheduled or cancelled, timer was cancelled, or timer thread terminated.
璇存槑錛氳鏂規硶浼氬湪鎸囧畾鐨勬椂闂寸偣鎵ц浠誨姟錛岀劧鍚庝粠璇ユ椂闂寸偣寮濮嬶紝鍦ㄨ瀹氱殑鍛ㄦ湡瀹氭椂鎵ц浠誨姟銆傜壒鍒殑錛屽鏋滆瀹氱殑鏃墮棿鐐瑰湪褰撳墠鏃墮棿涔嬪墠錛屼換鍔′細琚┈涓婃墽琛岋紝鐒跺悗寮濮嬫寜鐓ц瀹氱殑鍛ㄦ湡瀹氭椂鎵ц浠誨姟銆?BR>

scheduleAtFixedRate

public void scheduleAtFixedRate(TimerTask task,
                                long delay,
                                long period)
Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay. Subsequent executions take place at approximately regular intervals, separated by the specified period.

In fixed-rate execution, each execution is scheduled relative to the scheduled execution time of the initial execution. If an execution is delayed for any reason (such as garbage collection or other background activity), two or more executions will occur in rapid succession to "catch up." In the long run, the frequency of execution will be exactly the reciprocal of the specified period (assuming the system clock underlying Object.wait(long) is accurate).

Fixed-rate execution is appropriate for recurring activities that are sensitive to absolute time, such as ringing a chime every hour on the hour, or running scheduled maintenance every day at a particular time. It is also appropriate for recurring activities where the total time to perform a fixed number of executions is important, such as a countdown timer that ticks once every second for ten seconds. Finally, fixed-rate execution is appropriate for scheduling multiple repeating timer tasks that must remain synchronized with respect to one another.

Parameters:
task - task to be scheduled.
delay - delay in milliseconds before task is to be executed.
period - time in milliseconds between successive task executions.
Throws:
IllegalArgumentException - if delay is negative, or delay + System.currentTimeMillis() is negative.
IllegalStateException - if task was already scheduled or cancelled, timer was cancelled, or timer thread terminated.
璇存槑錛氳鏂規硶鍜宻chedule鐨勭浉鍚屽弬鏁扮殑鐗堟湰綾諱技錛屼笉鍚岀殑鏄紝濡傛灉璇ヤ換鍔″洜涓烘煇浜涘師鍥狅紙渚嬪鍨冨溇鏀墮泦錛夎屽歡榪熸墽琛岋紝閭d箞鎺ヤ笅鏉ョ殑浠誨姟浼氬敖鍙兘鐨勫揩閫熸墽琛岋紝浠ヨ刀涓婄壒瀹氱殑鏃墮棿鐐廣?BR>

scheduleAtFixedRate

public void scheduleAtFixedRate(TimerTask task,
                                Date firstTime,
                                long period)
Schedules the specified task for repeated fixed-rate execution, beginning at the specified time. Subsequent executions take place at approximately regular intervals, separated by the specified period.

In fixed-rate execution, each execution is scheduled relative to the scheduled execution time of the initial execution. If an execution is delayed for any reason (such as garbage collection or other background activity), two or more executions will occur in rapid succession to "catch up." In the long run, the frequency of execution will be exactly the reciprocal of the specified period (assuming the system clock underlying Object.wait(long) is accurate).

Fixed-rate execution is appropriate for recurring activities that are sensitive to absolute time, such as ringing a chime every hour on the hour, or running scheduled maintenance every day at a particular time. It is also appropriate for recurring activities where the total time to perform a fixed number of executions is important, such as a countdown timer that ticks once every second for ten seconds. Finally, fixed-rate execution is appropriate for scheduling multiple repeating timer tasks that must remain synchronized with respect to one another.

Parameters:
task - task to be scheduled.
firstTime - First time at which task is to be executed.
period - time in milliseconds between successive task executions.
Throws:
IllegalArgumentException - if time.getTime() is negative.
IllegalStateException - if task was already scheduled or cancelled, timer was cancelled, or timer thread terminated.
璇存槑錛氬拰涓婁竴涓柟娉曠被浼箋?BR>
      涓嬮潰鏄垜鐨勪竴涓祴璇曠墖鏂細

  public static void main(String[] args) throws Exception {
    Timer timer 
= new Timer(false);
    timer.schedule(
new Worker(), new Date(System.currentTimeMillis() + 1000));
  }


灝忕背 2005-06-09 10:29 鍙戣〃璇勮
]]>
JavaMail鐨勭畝鍗曞疄渚?/title><link>http://www.tkk7.com/georgehill/archive/2005/06/02/5473.html</link><dc:creator>灝忕背</dc:creator><author>灝忕背</author><pubDate>Thu, 02 Jun 2005 08:30:00 GMT</pubDate><guid>http://www.tkk7.com/georgehill/archive/2005/06/02/5473.html</guid><wfw:comment>http://www.tkk7.com/georgehill/comments/5473.html</wfw:comment><comments>http://www.tkk7.com/georgehill/archive/2005/06/02/5473.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.tkk7.com/georgehill/comments/commentRss/5473.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/georgehill/services/trackbacks/5473.html</trackback:ping><description><![CDATA[     鎽樿:       鍒╃敤JavaMail鐨凙PI鍙互蹇熺殑瀹炵幇鍙戦侀偖浠剁殑鍔熻兘銆備笅闈㈡槸鎴戜嬌鐢ㄧ殑涓涓畝鍗曠殑瀹炰緥錛屽疄鐜頒簡綆鍗曠殑鏂囨湰閭歡鐨勫彂閫併? import java.io.*;import java.util.*;import javax.activation.*;import javax.mail.*;...  <a href='http://www.tkk7.com/georgehill/archive/2005/06/02/5473.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/georgehill/aggbug/5473.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/georgehill/" target="_blank">灝忕背</a> 2005-06-02 16:30 <a href="http://www.tkk7.com/georgehill/archive/2005/06/02/5473.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>濡備綍姣旇緝涓や釜鏈夊彲鑳戒負null鐨勫疄渚?/title><link>http://www.tkk7.com/georgehill/archive/2005/05/25/5195.html</link><dc:creator>灝忕背</dc:creator><author>灝忕背</author><pubDate>Wed, 25 May 2005 09:00:00 GMT</pubDate><guid>http://www.tkk7.com/georgehill/archive/2005/05/25/5195.html</guid><wfw:comment>http://www.tkk7.com/georgehill/comments/5195.html</wfw:comment><comments>http://www.tkk7.com/georgehill/archive/2005/05/25/5195.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/georgehill/comments/commentRss/5195.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/georgehill/services/trackbacks/5195.html</trackback:ping><description><![CDATA[      浠ュ墠鍦ㄥ啓紼嬪簭鐨勬椂鍊欙紝紕板埌闇瑕佹瘮杈冧袱涓湁鍙兘涓簄ull鐨勫疄渚嬫椂錛屼負浜嗛伩鍏嶅嚭鐜癗ullPointerException錛岀粡甯哥敤榪欐牱鐨勪竴孌典唬鐮佹潵姣旇緝錛?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><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">    Object obj1 </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">abc</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    Object obj2 </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">cde</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000"> ((obj1 </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"> obj2 </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"> (obj1 </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"> obj1.equals(obj2)) <BR><IMG id=Codehighlighter1_182_223_Open_Image onclick="this.style.display='none'; Codehighlighter1_182_223_Open_Text.style.display='none'; Codehighlighter1_182_223_Closed_Image.style.display='inline'; Codehighlighter1_182_223_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_182_223_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_182_223_Closed_Text.style.display='none'; Codehighlighter1_182_223_Open_Image.style.display='inline'; Codehighlighter1_182_223_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align=top>        </SPAN><SPAN style="COLOR: #000000">||</SPAN><SPAN style="COLOR: #000000"> (obj2 </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"> obj2.equals(obj1))) </SPAN><SPAN id=Codehighlighter1_182_223_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://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_182_223_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>      System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">equals</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>    }</SPAN></SPAN></DIV></DIV><BR>      榪欐牱鐨勭▼搴忥紝璇昏搗鏉ョ湡鏄尯鎷楀彛銆傛垜涓鐩存病鏈夋兂鍒頒粈涔堝ソ鐨勬柟娉曡В鍐寵繖涓棶棰橈紝鐩村埌浠婂ぉ鍦ㄧ湅鍒癑DK鐨凙bstractList婧愮爜鐨別quals鏂規硶鐨勫疄鐜版椂錛岀湅鍒拌繖涓孌碉細<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><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">        </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000"> (</SPAN><SPAN style="COLOR: #000000">!</SPAN><SPAN style="COLOR: #000000">(o1</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"> o2</SPAN><SPAN style="COLOR: #000000">==</SPAN><SPAN style="COLOR: #0000ff">null</SPAN><SPAN style="COLOR: #000000"> : o1.equals(o2)))<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">false</SPAN><SPAN style="COLOR: #000000">;</SPAN></DIV></DIV><BR>      鍘熸潵鐢ㄤ笁鍏冭繍綆楃鍙互寰堝ソ鐨勮В鍐寵繖涓棶棰橈紝鍛靛懙錛屾垜鍓嶉潰鐨勭▼搴忓彲浠ユ敼鍐欐垚錛?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><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">    Object obj1 </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">abc</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    Object obj2 </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">cde</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000"> (obj1 </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"> obj2 </SPAN><SPAN style="COLOR: #000000">==</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">null</SPAN><SPAN style="COLOR: #000000"> : obj1.equals(obj2))<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>      System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">equals</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);</SPAN></DIV></DIV><BR>      鐪熸槸綆媧佸浜嗭紒<IMG height=20 src="http://www.tkk7.com/Emoticons/QQ/05.gif" width=20 border=0><img src ="http://www.tkk7.com/georgehill/aggbug/5195.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/georgehill/" target="_blank">灝忕背</a> 2005-05-25 17:00 <a href="http://www.tkk7.com/georgehill/archive/2005/05/25/5195.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>浠嶴ocketChannel瀵硅薄姹犱腑鑾峰彇鐨勫疄渚嬶紝浣跨敤鏃跺簲娉ㄦ剰鐨勯棶棰?/title><link>http://www.tkk7.com/georgehill/archive/2005/05/25/5180.html</link><dc:creator>灝忕背</dc:creator><author>灝忕背</author><pubDate>Wed, 25 May 2005 07:02:00 GMT</pubDate><guid>http://www.tkk7.com/georgehill/archive/2005/05/25/5180.html</guid><wfw:comment>http://www.tkk7.com/georgehill/comments/5180.html</wfw:comment><comments>http://www.tkk7.com/georgehill/archive/2005/05/25/5180.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/georgehill/comments/commentRss/5180.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/georgehill/services/trackbacks/5180.html</trackback:ping><description><![CDATA[      浠庡璞℃睜涓幏鍙栫殑瀹炰緥錛屽洜涓哄茍涓嶆竻妤氳channel鏄惁宸茬粡璁劇疆鎴愭紜殑鐘舵侊紝鎵浠ュ湪浣跨敤鏃舵渶濂介噸鏂拌緗竴閬嶃傛湁浠ヤ笅鍑犵偣闇瑕佹敞鎰忥細<BR>      1.鍦ㄤ嬌鐢ㄩ樆濉濱O鏃訛紝闇瑕佹妸璇hannel璁劇疆鎴愰樆濉炵殑錛屽嵆闇瑕佽皟鐢⊿ocketChannel.configureBlocking(true);<BR>      2.鍦ㄤ嬌鐢ㄩ潪闃誨IO鏃訛紝闇瑕佹妸璇hannel璁劇疆鎴愰潪闃誨鐨勶紝鍗抽渶瑕佽皟鐢⊿ocketChannel.configureBlocking(false);<BR>      3.濡傛灉璇hannel娉ㄥ唽浜唖elector錛岄偅涔堝湪榪斿洖璇ュ疄渚嬪埌瀵硅薄姹犱腑錛岄渶瑕佹妸娉ㄥ唽鐨剆elector娓呴櫎錛屽嵆闇瑕佽皟鐢⊿elector鐨刢lose鏂規硶銆?BR><BR>      涓嬮潰鏄竴孌靛簲鐢ㄥ満鏅殑渚嬪瓙錛?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><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000"><IMG src="http://www.tkk7.com/images/dot.gif"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 鎶婂懡浠よ緭鍑?/SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">        channel.configureBlocking(</SPAN><SPAN style="COLOR: #0000ff">true</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        PrintWriter writer </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> PrintWriter(channel.socket().getOutputStream(), </SPAN><SPAN style="COLOR: #0000ff">false</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        writer.write(command.endsWith(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">\n</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">) </SPAN><SPAN style="COLOR: #000000">?</SPAN><SPAN style="COLOR: #000000"> command : command </SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">\n</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        writer.flush();<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        channel.configureBlocking(</SPAN><SPAN style="COLOR: #0000ff">false</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 鍒涘緩Selector</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">        Selector selector </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Selector.open();<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 鍚慡elector娉ㄥ唽鎴戜滑闇瑕佺殑READ浜嬩歡</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">        SelectionKey skey </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> channel.register(selector, SelectionKey.OP_READ);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        boolean stop </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">false</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> n </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> read </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        ByteBuffer buffer </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> ByteBuffer.allocate(</SPAN><SPAN style="COLOR: #000000">1024</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 杞</SPAN><SPAN style="COLOR: #008000"><BR><IMG id=Codehighlighter1_637_809_Open_Image onclick="this.style.display='none'; Codehighlighter1_637_809_Open_Text.style.display='none'; Codehighlighter1_637_809_Closed_Image.style.display='inline'; Codehighlighter1_637_809_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_637_809_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_637_809_Closed_Text.style.display='none'; Codehighlighter1_637_809_Open_Image.style.display='inline'; Codehighlighter1_637_809_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">        </SPAN><SPAN style="COLOR: #0000ff">while</SPAN><SPAN style="COLOR: #000000"> (</SPAN><SPAN style="COLOR: #000000">!</SPAN><SPAN style="COLOR: #000000">stop) </SPAN><SPAN id=Codehighlighter1_637_809_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://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_637_809_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>          </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 鑾峰彇Selector榪斿洖鐨勬椂闂村?/SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">          n </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> selector.select();<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>          </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 褰撲紶鍥炵殑鍊煎ぇ浜?浜嬶紝璇諱簨浠跺彂鐢熶簡</SPAN><SPAN style="COLOR: #008000"><BR><IMG id=Codehighlighter1_754_799_Open_Image onclick="this.style.display='none'; Codehighlighter1_754_799_Open_Text.style.display='none'; Codehighlighter1_754_799_Closed_Image.style.display='inline'; Codehighlighter1_754_799_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_754_799_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_754_799_Closed_Text.style.display='none'; Codehighlighter1_754_799_Open_Image.style.display='inline'; Codehighlighter1_754_799_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">          </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000"> (n </SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">) </SPAN><SPAN id=Codehighlighter1_754_799_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://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_754_799_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>         </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 澶勭悊鍙戠敓鐨勪簨浠?/SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">         <IMG src="http://www.tkk7.com/images/dot.gif"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>          }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>        }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        selector.close();</SPAN></DIV></DIV><img src ="http://www.tkk7.com/georgehill/aggbug/5180.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/georgehill/" target="_blank">灝忕背</a> 2005-05-25 15:02 <a href="http://www.tkk7.com/georgehill/archive/2005/05/25/5180.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>JDK Dynamic Proxy妯″紡鐨勭畝鍗曡寖渚?/title><link>http://www.tkk7.com/georgehill/archive/2005/05/24/5126.html</link><dc:creator>灝忕背</dc:creator><author>灝忕背</author><pubDate>Tue, 24 May 2005 09:47:00 GMT</pubDate><guid>http://www.tkk7.com/georgehill/archive/2005/05/24/5126.html</guid><wfw:comment>http://www.tkk7.com/georgehill/comments/5126.html</wfw:comment><comments>http://www.tkk7.com/georgehill/archive/2005/05/24/5126.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.tkk7.com/georgehill/comments/commentRss/5126.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/georgehill/services/trackbacks/5126.html</trackback:ping><description><![CDATA[      鍦↗DK1.3鐗堟湰涓紩鍏ヤ簡Dynamic Proxy鐨勪唬鐞嗘満鍒訛紝閫氳繃瀹炵幇java.lang.reflect.InvocationHandler鎺ュ彛錛屽彲浠ュ疄鐜版嫤鎴渶瑕佹敼鍐欑殑鏂規硶銆備笅闈㈡槸涓涓畝鍗曡寖渚嬨?BR>      鏈変笅闈竴涓帴鍙estInterface鍜屽畠鐨勪竴涓疄鐜癟estImpl錛?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><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">package sample.proxy;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG id=Codehighlighter1_23_182_Open_Image onclick="this.style.display='none'; Codehighlighter1_23_182_Open_Text.style.display='none'; Codehighlighter1_23_182_Closed_Image.style.display='inline'; Codehighlighter1_23_182_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_23_182_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_23_182_Closed_Text.style.display='none'; Codehighlighter1_23_182_Open_Image.style.display='inline'; Codehighlighter1_23_182_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_23_182_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">/**/</SPAN><SPAN id=Codehighlighter1_23_182_Open_Text><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">*<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * <p>Title: </p><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> *<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * <p>Description: </p><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> *<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * <p>Copyright: Copyright (c) 2005</p><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> *<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * <p>Company: </p><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> *<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * @author George Hill<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * @version 1.0<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top> </SPAN><SPAN style="COLOR: #008000">*/</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG id=Codehighlighter1_216_245_Open_Image onclick="this.style.display='none'; Codehighlighter1_216_245_Open_Text.style.display='none'; Codehighlighter1_216_245_Closed_Image.style.display='inline'; Codehighlighter1_216_245_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_216_245_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_216_245_Closed_Text.style.display='none'; Codehighlighter1_216_245_Open_Image.style.display='inline'; Codehighlighter1_216_245_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">interface</SPAN><SPAN style="COLOR: #000000"> TestInterface </SPAN><SPAN id=Codehighlighter1_216_245_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://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_216_245_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> String print();<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV><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><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">package sample.proxy;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG id=Codehighlighter1_23_182_Open_Image onclick="this.style.display='none'; Codehighlighter1_23_182_Open_Text.style.display='none'; Codehighlighter1_23_182_Closed_Image.style.display='inline'; Codehighlighter1_23_182_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_23_182_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_23_182_Closed_Text.style.display='none'; Codehighlighter1_23_182_Open_Image.style.display='inline'; Codehighlighter1_23_182_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_23_182_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">/**/</SPAN><SPAN id=Codehighlighter1_23_182_Open_Text><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">*<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * <p>Title: </p><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> *<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * <p>Description: </p><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> *<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * <p>Copyright: Copyright (c) 2005</p><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> *<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * <p>Company: </p><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> *<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * @author George Hill<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * @version 1.0<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top> </SPAN><SPAN style="COLOR: #008000">*/</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG id=Codehighlighter1_232_316_Open_Image onclick="this.style.display='none'; Codehighlighter1_232_316_Open_Text.style.display='none'; Codehighlighter1_232_316_Closed_Image.style.display='inline'; Codehighlighter1_232_316_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_232_316_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_232_316_Closed_Text.style.display='none'; Codehighlighter1_232_316_Open_Image.style.display='inline'; Codehighlighter1_232_316_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.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"> TestImpl implements TestInterface </SPAN><SPAN id=Codehighlighter1_232_316_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://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_232_316_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  <BR><IMG id=Codehighlighter1_261_311_Open_Image onclick="this.style.display='none'; Codehighlighter1_261_311_Open_Text.style.display='none'; Codehighlighter1_261_311_Closed_Image.style.display='inline'; Codehighlighter1_261_311_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_261_311_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_261_311_Closed_Text.style.display='none'; Codehighlighter1_261_311_Open_Image.style.display='inline'; Codehighlighter1_261_311_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> String print() </SPAN><SPAN id=Codehighlighter1_261_311_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://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_261_311_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Hello, it's from TestImpl class</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>  }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV><BR>      涓嬮潰鎷︽埅print鏂規硶錛岃皟鐢ㄨ嚜宸辯殑瀹炵幇錛岃繖闇瑕佸疄鐜癹ava.lang.reflect.InvocationHandler鎺ュ彛銆?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><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">package sample.proxy;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>import java.lang.reflect.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG id=Codehighlighter1_52_211_Open_Image onclick="this.style.display='none'; Codehighlighter1_52_211_Open_Text.style.display='none'; Codehighlighter1_52_211_Closed_Image.style.display='inline'; Codehighlighter1_52_211_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_52_211_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_52_211_Closed_Text.style.display='none'; Codehighlighter1_52_211_Open_Image.style.display='inline'; Codehighlighter1_52_211_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_52_211_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">/**/</SPAN><SPAN id=Codehighlighter1_52_211_Open_Text><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">*<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * <p>Title: </p><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> *<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * <p>Description: </p><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> *<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * <p>Copyright: Copyright (c) 2005</p><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> *<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * <p>Company: </p><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> *<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * @author George Hill<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * @version 1.0<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top> </SPAN><SPAN style="COLOR: #008000">*/</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG id=Codehighlighter1_268_1110_Open_Image onclick="this.style.display='none'; Codehighlighter1_268_1110_Open_Text.style.display='none'; Codehighlighter1_268_1110_Closed_Image.style.display='inline'; Codehighlighter1_268_1110_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_268_1110_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_268_1110_Closed_Text.style.display='none'; Codehighlighter1_268_1110_Open_Image.style.display='inline'; Codehighlighter1_268_1110_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.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"> TestHandler implements InvocationHandler </SPAN><SPAN id=Codehighlighter1_268_1110_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://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_268_1110_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  TestInterface test;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  <BR><IMG id=Codehighlighter1_300_416_Open_Image onclick="this.style.display='none'; Codehighlighter1_300_416_Open_Text.style.display='none'; Codehighlighter1_300_416_Closed_Image.style.display='inline'; Codehighlighter1_300_416_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_300_416_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_300_416_Closed_Text.style.display='none'; Codehighlighter1_300_416_Open_Image.style.display='inline'; Codehighlighter1_300_416_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>  </SPAN><SPAN id=Codehighlighter1_300_416_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">/**/</SPAN><SPAN id=Codehighlighter1_300_416_Open_Text><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">*<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>   * 灝嗗姩鎬佷唬鐞嗙粦瀹氬埌鎸囧畾鐨凾estInterface<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>   * @param test TestInterface<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>   * @return TestInterface 緇戝畾浠g悊鍚庣殑TestInterface<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>   </SPAN><SPAN style="COLOR: #008000">*/</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG id=Codehighlighter1_466_674_Open_Image onclick="this.style.display='none'; Codehighlighter1_466_674_Open_Text.style.display='none'; Codehighlighter1_466_674_Closed_Image.style.display='inline'; Codehighlighter1_466_674_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_466_674_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_466_674_Closed_Text.style.display='none'; Codehighlighter1_466_674_Open_Image.style.display='inline'; Codehighlighter1_466_674_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> TestInterface bind(TestInterface test) </SPAN><SPAN id=Codehighlighter1_466_674_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://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_466_674_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">this</SPAN><SPAN style="COLOR: #000000">.test </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> test;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>    <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>    TestInterface proxyTest </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> (TestInterface) Proxy.newProxyInstance(<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>      test.getClass().getClassLoader(), test.getClass().getInterfaces(), </SPAN><SPAN style="COLOR: #0000ff">this</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>    <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> proxyTest;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>  }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  <BR><IMG id=Codehighlighter1_681_832_Open_Image onclick="this.style.display='none'; Codehighlighter1_681_832_Open_Text.style.display='none'; Codehighlighter1_681_832_Closed_Image.style.display='inline'; Codehighlighter1_681_832_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_681_832_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_681_832_Closed_Text.style.display='none'; Codehighlighter1_681_832_Open_Image.style.display='inline'; Codehighlighter1_681_832_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>  </SPAN><SPAN id=Codehighlighter1_681_832_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">/**/</SPAN><SPAN id=Codehighlighter1_681_832_Open_Text><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">*<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>   * 鏂規硶璋冪敤鎷︽埅鍣紝鎷︽埅print鏂規硶<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>   * @param proxy Object<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>   * @param method Method<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>   * @param args Object[]<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>   * @return Object<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>   * @throws Throwable<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>   </SPAN><SPAN style="COLOR: #008000">*/</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG id=Codehighlighter1_918_1105_Open_Image onclick="this.style.display='none'; Codehighlighter1_918_1105_Open_Text.style.display='none'; Codehighlighter1_918_1105_Closed_Image.style.display='inline'; Codehighlighter1_918_1105_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_918_1105_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_918_1105_Closed_Text.style.display='none'; Codehighlighter1_918_1105_Open_Image.style.display='inline'; Codehighlighter1_918_1105_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> Object invoke(Object proxy, Method method, Object[] args) throws Throwable </SPAN><SPAN id=Codehighlighter1_918_1105_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://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_918_1105_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 濡傛灉璋冪敤鐨勬槸print鏂規硶錛屽垯鏇挎崲鎺?/SPAN><SPAN style="COLOR: #008000"><BR><IMG id=Codehighlighter1_988_1043_Open_Image onclick="this.style.display='none'; Codehighlighter1_988_1043_Open_Text.style.display='none'; Codehighlighter1_988_1043_Closed_Image.style.display='inline'; Codehighlighter1_988_1043_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_988_1043_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_988_1043_Closed_Text.style.display='none'; Codehighlighter1_988_1043_Open_Image.style.display='inline'; Codehighlighter1_988_1043_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">    </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000"> (</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">print</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">.equals(method.getName())) </SPAN><SPAN id=Codehighlighter1_988_1043_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://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_988_1043_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>      </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">HaHa, It's come from TestHandler</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;<BR><IMG id=Codehighlighter1_1050_1101_Open_Image onclick="this.style.display='none'; Codehighlighter1_1050_1101_Open_Text.style.display='none'; Codehighlighter1_1050_1101_Closed_Image.style.display='inline'; Codehighlighter1_1050_1101_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1050_1101_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1050_1101_Closed_Text.style.display='none'; Codehighlighter1_1050_1101_Open_Image.style.display='inline'; Codehighlighter1_1050_1101_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>    }</SPAN></SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">else</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN id=Codehighlighter1_1050_1101_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://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_1050_1101_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>      </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> method.invoke(</SPAN><SPAN style="COLOR: #0000ff">this</SPAN><SPAN style="COLOR: #000000">.test, args);<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>  }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV><BR>      涓嬮潰鏄祴璇曠敤渚嬶細<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><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">package sample.test;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>import junit.framework.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>import sample.proxy.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG id=Codehighlighter1_73_239_Open_Image onclick="this.style.display='none'; Codehighlighter1_73_239_Open_Text.style.display='none'; Codehighlighter1_73_239_Closed_Image.style.display='inline'; Codehighlighter1_73_239_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_73_239_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_73_239_Closed_Text.style.display='none'; Codehighlighter1_73_239_Open_Image.style.display='inline'; Codehighlighter1_73_239_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_73_239_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">/**/</SPAN><SPAN id=Codehighlighter1_73_239_Open_Text><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">*<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * <p>Title: </p> <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * <p>Description: </p> <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * <p>Copyright: Copyright (c) 2005</p> <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * <p>Company: </p><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * @author George Hill<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top> * @version 1.0<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top> </SPAN><SPAN style="COLOR: #008000">*/</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG id=Codehighlighter1_289_669_Open_Image onclick="this.style.display='none'; Codehighlighter1_289_669_Open_Text.style.display='none'; Codehighlighter1_289_669_Closed_Image.style.display='inline'; Codehighlighter1_289_669_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_289_669_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_289_669_Closed_Text.style.display='none'; Codehighlighter1_289_669_Open_Image.style.display='inline'; Codehighlighter1_289_669_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.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"> TestDynamicProxy extends TestCase </SPAN><SPAN id=Codehighlighter1_289_669_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://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_289_669_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff">private</SPAN><SPAN style="COLOR: #000000"> TestInterface test </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">null</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_374_504_Open_Image onclick="this.style.display='none'; Codehighlighter1_374_504_Open_Text.style.display='none'; Codehighlighter1_374_504_Closed_Image.style.display='inline'; Codehighlighter1_374_504_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_374_504_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_374_504_Closed_Text.style.display='none'; Codehighlighter1_374_504_Open_Image.style.display='inline'; Codehighlighter1_374_504_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff">protected</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> setUp() throws Exception </SPAN><SPAN id=Codehighlighter1_374_504_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://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_374_504_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>    super.setUp();<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>    TestHandler handler </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> TestHandler();<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 鐢╤andler鍘葷敓鎴愬疄渚?/SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">    test </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> handler.bind(</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> TestImpl());<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>  }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_552_595_Open_Image onclick="this.style.display='none'; Codehighlighter1_552_595_Open_Text.style.display='none'; Codehighlighter1_552_595_Closed_Image.style.display='inline'; Codehighlighter1_552_595_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_552_595_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_552_595_Closed_Text.style.display='none'; Codehighlighter1_552_595_Open_Image.style.display='inline'; Codehighlighter1_552_595_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff">protected</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> tearDown() throws Exception </SPAN><SPAN id=Codehighlighter1_552_595_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://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_552_595_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>    test </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">null</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>    super.tearDown();<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>  }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_624_666_Open_Image onclick="this.style.display='none'; Codehighlighter1_624_666_Open_Text.style.display='none'; Codehighlighter1_624_666_Closed_Image.style.display='inline'; Codehighlighter1_624_666_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_624_666_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_624_666_Closed_Text.style.display='none'; Codehighlighter1_624_666_Open_Image.style.display='inline'; Codehighlighter1_624_666_Open_Text.style.display='inline';" src="http://www.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"> testPrint() </SPAN><SPAN id=Codehighlighter1_624_666_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://www.tkk7.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_624_666_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>    System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(test.print());<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>  }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV><BR>      榪愯嫻嬭瘯鐢ㄤ緥錛屽彲浠ョ湅鍒拌緭鍑虹殑鏄淗aHa, It's come from TestHandler鈥濄?img src ="http://www.tkk7.com/georgehill/aggbug/5126.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/georgehill/" target="_blank">灝忕背</a> 2005-05-24 17:47 <a href="http://www.tkk7.com/georgehill/archive/2005/05/24/5126.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>浣跨敤Jakarta Commons Pool鍒涘緩瀵硅薄姹犵殑綆鍗曚緥瀛?/title><link>http://www.tkk7.com/georgehill/archive/2005/05/20/4993.html</link><dc:creator>灝忕背</dc:creator><author>灝忕背</author><pubDate>Fri, 20 May 2005 06:08:00 GMT</pubDate><guid>http://www.tkk7.com/georgehill/archive/2005/05/20/4993.html</guid><wfw:comment>http://www.tkk7.com/georgehill/comments/4993.html</wfw:comment><comments>http://www.tkk7.com/georgehill/archive/2005/05/20/4993.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/georgehill/comments/commentRss/4993.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/georgehill/services/trackbacks/4993.html</trackback:ping><description><![CDATA[     鎽樿:       浣跨敤Jakarta Commons Pool鍙互鏍規嵁闇瑕佸揩閫熺殑瀹炵幇鑷繁鐨勫璞℃睜錛屽彧闇瑕佸疄鐜癙oolableObjectFactory鎴栬匥eyedPoolableObjectFactory鎺ュ彛銆侹eyedPoolableObjectFactory鍜孭oolableObjectFactory鐨勪笉鍚屼箣澶勫湪浜嶬eyedPoolabl...  <a href='http://www.tkk7.com/georgehill/archive/2005/05/20/4993.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/georgehill/aggbug/4993.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/georgehill/" target="_blank">灝忕背</a> 2005-05-20 14:08 <a href="http://www.tkk7.com/georgehill/archive/2005/05/20/4993.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鐢∟IO瀹炵幇鐨勭畝鍗曠殑緗戠粶鏈嶅姟鍣ㄧhttp://www.tkk7.com/georgehill/archive/2005/05/18/4499.html灝忕背灝忕背Wed, 18 May 2005 04:21:00 GMThttp://www.tkk7.com/georgehill/archive/2005/05/18/4499.htmlhttp://www.tkk7.com/georgehill/comments/4499.htmlhttp://www.tkk7.com/georgehill/archive/2005/05/18/4499.html#Feedback0http://www.tkk7.com/georgehill/comments/commentRss/4499.htmlhttp://www.tkk7.com/georgehill/services/trackbacks/4499.html

package sample.nio;

import java.io.
*;
import java.net.
*;
import java.nio.channels.
*;
import java.util.
*;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2005</p>
 *
 * <p>Company: </p>
 *
 * @author George Hill
 * @version 1.0
 
*/


public class Server {

  
private int port;

  
public Server(int port) {
    
this.port = port;
  }


  
public void startServer() throws IOException {
    
// 鍒涘緩ServerSocketChannel騫朵笖緇戝畾鍒版寚瀹氱殑绔彛
    ServerSocketChannel ssc = ServerSocketChannel.open();
    InetSocketAddress address 
= new InetSocketAddress(InetAddress.getLocalHost(), port);
    ssc.socket().bind(address);
    ssc.configureBlocking(
false);

    
// 鍒涘緩Selector錛屽茍涓旀敞鍐孉CCEPT浜嬩歡
    Selector selector = Selector.open();
    SelectionKey skey 
= ssc.register(selector, SelectionKey.OP_ACCEPT);

    boolean stop 
= false;
    
int n = 0;

    System.
out.println("Server Start");

    
// 杞
    while (!stop) {
      
// 鑾峰彇Selector榪斿洖鐨勬椂闂村?/SPAN>
      n = selector.select();

      
// 褰撲紶鍥炵殑鍊煎ぇ浜?浜嬶紝璇繪椂闂村彂鐢熶簡
      if (n > 0{
        Set 
set = selector.selectedKeys();
        Iterator it 
= set.iterator();

        
while (it.hasNext()) {
          skey 
= (SelectionKey) it.next();
          it.remove();

          
if (skey.isAcceptable()) {
            
// 浠巆hannel()涓彇寰楀垰鍒氭敞鍐岀殑Channel
            Socket socket = ((ServerSocketChannel) skey.channel()).accept().socket();

            PrintWriter writer 
= new PrintWriter(socket.getOutputStream(), true);

            
// 灝?Hello, World"鍐欏叆
            writer.write("Hello, World!\n");

            
// 鐫$湢3縐?/SPAN>
            try {
              Thread.sleep(
3000);
            }
 catch (InterruptedException ie) {
            }


            
// 灝?EXIT"鍐欏叆Buffer
            writer.write("EXIT");

            
// 閫鍑虹▼搴?/SPAN>
            writer.close();
            
// stop = true;
          }

        }

      }

    }


    ssc.close();
    System.
out.println("Server Stop");
  }


  
public static void main(String[] args) throws Exception {
    Server server 
= new Server(5000);
    server.startServer();
  }

}



灝忕背 2005-05-18 12:21 鍙戣〃璇勮
]]>
鐢∟IO瀹炵幇鐨勪袱縐嶇綉緇滅▼搴忓鎴風http://www.tkk7.com/georgehill/archive/2005/05/18/4498.html灝忕背灝忕背Wed, 18 May 2005 04:18:00 GMThttp://www.tkk7.com/georgehill/archive/2005/05/18/4498.htmlhttp://www.tkk7.com/georgehill/comments/4498.htmlhttp://www.tkk7.com/georgehill/archive/2005/05/18/4498.html#Feedback0http://www.tkk7.com/georgehill/comments/commentRss/4498.htmlhttp://www.tkk7.com/georgehill/services/trackbacks/4498.html闃呰鍏ㄦ枃

灝忕背 2005-05-18 12:18 鍙戣〃璇勮
]]>
濡備綍浣跨敤JCE鐨凞ES榪涜鍔犲瘑瑙e瘑http://www.tkk7.com/georgehill/archive/2005/05/18/4485.html灝忕背灝忕背Wed, 18 May 2005 03:55:00 GMThttp://www.tkk7.com/georgehill/archive/2005/05/18/4485.htmlhttp://www.tkk7.com/georgehill/comments/4485.htmlhttp://www.tkk7.com/georgehill/archive/2005/05/18/4485.html#Feedback4http://www.tkk7.com/georgehill/comments/commentRss/4485.htmlhttp://www.tkk7.com/georgehill/services/trackbacks/4485.html      浠嶫DK1.4寮濮嬶紝SUN鎻愪緵浜咼CE鍖咃紝鍙互瀹炵幇澶氱鍔犲瘑綆楁硶銆備笅闈㈡槸鎴戠殑涓涓敤JCE榪涜DES鍔犲瘑瑙e瘑鐨勭▼搴忥細

package sample;

import java.security.
*;
import javax.crypto.
*;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2005</p>
 *
 * <p>Company: </p>
 *
 * @author George Hill
 * @version 1.0
 
*/


public class Test {
  
  
// 鍔犲瘑浣跨敤鐨凨ey
  private SecretKey key;
  
  
// 鍔犲瘑綆楁硶錛孞CE鍙敤DES,DESede鍜孊lowfish
  private static final String algorithm = "DES";
  
  
public Test() throws NoSuchAlgorithmException {
    KeyGenerator generator 
= KeyGenerator.getInstance(algorithm);
    key 
= generator.generateKey();
  }

  
  
/**
   * 鍒╃敤DES綆楁硶鍔犲瘑
   * @param s String 闇瑕佸姞瀵嗙殑瀛楃涓?BR>   * @return String 鍔犲瘑鍚庣殑瀛楃涓?BR>   * @throws Exception
   
*/

  
public String encryptData(String s) throws Exception {
    Cipher c 
= Cipher.getInstance(algorithm);
    c.init(Cipher.ENCRYPT_MODE, key);

    
return new String(c.doFinal(s.getBytes()));
  }

  
  
/**
   * 鍒╃敤DES綆楁硶瑙e瘑
   * @param s String 闇瑕佽В瀵嗙殑瀛楃涓?BR>   * @return String 瑙e瘑鍚庣殑瀛楃涓?BR>   * @throws Exception
   
*/

  
public String decryptData(String s) throws Exception {
    Cipher c 
= Cipher.getInstance(algorithm);
    c.init(Cipher.DECRYPT_MODE, key);

    
return new String(c.doFinal(s.getBytes()));
  }

  
  
/**
   * 嫻嬭瘯紼嬪簭
   * @param args String[]
   * @throws Exception
   
*/

  
public static void main(String[] args) throws Exception {
    String s 
= "Hello";
    Test test 
= new Test();
    String encrypt 
= test.encryptData(s);
    System.
out.println(encrypt);
    String decrypt 
= test.decryptData(encrypt);
    System.
out.println(decrypt);
  }

}



      鍦ㄥ疄闄呯殑浣跨敤涓紝寰寰闇瑕佸鍔犲瘑鍚庣殑byte鏁扮粍榪涜杞崲錛屽彲浠ヨ嚜宸卞疄鐜拌漿鎹紝鎴栬呯敤涓浜涚涓夋柟鐨凙PI銆?img src ="http://www.tkk7.com/georgehill/aggbug/4485.html" width = "1" height = "1" />

灝忕背 2005-05-18 11:55 鍙戣〃璇勮
]]>
JBuilder 2005瑙e喅浜嗕互鍓嶇増鏈腑瀛樺湪鐨勭紪杈慩ML鏂囦歡寰堟參鐨勯棶棰?/title><link>http://www.tkk7.com/georgehill/archive/2005/05/16/4334.html</link><dc:creator>灝忕背</dc:creator><author>灝忕背</author><pubDate>Mon, 16 May 2005 06:04:00 GMT</pubDate><guid>http://www.tkk7.com/georgehill/archive/2005/05/16/4334.html</guid><wfw:comment>http://www.tkk7.com/georgehill/comments/4334.html</wfw:comment><comments>http://www.tkk7.com/georgehill/archive/2005/05/16/4334.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/georgehill/comments/commentRss/4334.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/georgehill/services/trackbacks/4334.html</trackback:ping><description><![CDATA[      鍦↗Builder X涓紪杈慩ML鏂囦歡鏃訛紝姣忓仛淇敼閮借鍋滈】寰堥暱鐨勬椂闂達紝鍙兘鏄湪媯鏌ML鐨勬牸寮忔槸鍚︽紜備緥濡傛垜鍦ㄧ紪杈慡truts鐨勬湁鏁堟ф牎楠屾枃浠秜alidation.xml鏂囦歡鏃訛紝甯稿父鍐欎竴灝忔鍐呭閮借浜斿叚鍒嗛挓鐨勬椂鍊欍備嬌鎴戞棤娉曞繊鍙楋紝涓嶅緱涓嶇敤鍏跺畠鐨勮蔣浠剁紪杈戯紝渚嬪UltraEdit銆傜幇鍦?005涓凡緇忔病鏈夎繖涓棶棰樸傛垜鎰熻2005鍦ㄧ紪杈慡truts鐨勫唴瀹規椂錛岄熷害閮芥瘮浠ュ墠鐨勭増鏈蹇?img src ="http://www.tkk7.com/georgehill/aggbug/4334.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/georgehill/" target="_blank">灝忕背</a> 2005-05-16 14:04 <a href="http://www.tkk7.com/georgehill/archive/2005/05/16/4334.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鎴戠殑緗戦〉闄勫姞鐮佸疄鐜?/title><link>http://www.tkk7.com/georgehill/archive/2005/05/12/4228.html</link><dc:creator>灝忕背</dc:creator><author>灝忕背</author><pubDate>Thu, 12 May 2005 07:33:00 GMT</pubDate><guid>http://www.tkk7.com/georgehill/archive/2005/05/12/4228.html</guid><wfw:comment>http://www.tkk7.com/georgehill/comments/4228.html</wfw:comment><comments>http://www.tkk7.com/georgehill/archive/2005/05/12/4228.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/georgehill/comments/commentRss/4228.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/georgehill/services/trackbacks/4228.html</trackback:ping><description><![CDATA[     鎽樿:       鍦ㄧ綉欏電紪紼嬩腑錛岀粡甯擱渶瑕佷嬌鐢ㄥ埌闄勫姞鐮佽繖鏍風殑涓涓笢瑗匡紝闃叉榛戝鐢ㄧ▼搴忕敤絀蜂婦娉曞幓鐮磋В瀵嗙爜銆備笅闈㈡槸鎴戠殑涓涓檮鍔犵爜鐨凷ervlet瀹炵幇銆?   1import java.awt.*;  2import java.awt.image.*;  3import...  <a href='http://www.tkk7.com/georgehill/archive/2005/05/12/4228.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/georgehill/aggbug/4228.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/georgehill/" target="_blank">灝忕背</a> 2005-05-12 15:33 <a href="http://www.tkk7.com/georgehill/archive/2005/05/12/4228.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>濡備綍鍦↗Builder2005涓柊澧濻erverhttp://www.tkk7.com/georgehill/archive/2005/05/12/4215.html灝忕背灝忕背Thu, 12 May 2005 03:56:00 GMThttp://www.tkk7.com/georgehill/archive/2005/05/12/4215.htmlhttp://www.tkk7.com/georgehill/comments/4215.htmlhttp://www.tkk7.com/georgehill/archive/2005/05/12/4215.html#Feedback0http://www.tkk7.com/georgehill/comments/commentRss/4215.htmlhttp://www.tkk7.com/georgehill/services/trackbacks/4215.html      鏈榪戞妸鑷繁鐨処DE浠嶫BuilderX鍗囩駭鍒頒簡2005錛岃櫧鐒跺湪緙栬緫Struts鐨勯厤緗枃浠剁殑鏃跺欐劅瑙夊揩浜嗕簺錛屼絾鏄諱綋榪樻槸寰堝悆鏈哄櫒銆備互鍓嶇殑涓浜涢」鐩兘鏄窇鍦═omcat 4.0.6鐨勭幆澧冧笅鐨勶紝鍦?005涓嵈娌℃湁浜員omcat 4.0鐨凷erver銆備負浜嗚寮鍙戠幆澧冨拰榪愯鐜涓鑷達紝鎴戝喅瀹氱粰2005鍔犱笂Tomcat 4.0鐨凷erver銆傜粡榪囦竴澶╃殑鎽哥儲錛岀粓浜庢垚鍔熴?BR>      涓寮濮嬫垜浠ヤ負鐢–onfigure Servers閲岄潰鐨凜opy鍔熻兘錛屾妸Tomcat 4.1鐨勬嫹璐濇垚4.0鐨勫氨鍙互浜嗭紝浣嗘槸Tomcat璺戜笉璧鋒潵錛屽洜涓?.1鍜?.0鐨剆erver.xml鏂囦歡鐨勬牸寮忔槸涓嶄竴鏍風殑錛屽湪4.1涓殑server.xml鏂囦歡鏍煎紡濡備笅錛?/P>
 1<?xml version="1.0" encoding="UTF-8"?>
 2<!--This comment marks this file as generated, so it may be deleted and regenerated at any time. To preserve manual changes to this file, delete this comment.-->
 3<Server debug="0" port="8081" shutdown="SHUTDOWN">
 4  <Service name="Tomcat-Standalone">
 5    <Connector acceptCount="10" className="org.apache.coyote.tomcat4.CoyoteConnector" connectionTimeout="60000" debug="0" maxProcessors="75" minProcessors="5" port="8080" useURIValidationHack="false"/>
 6    <Engine debug="0" defaultHost="localhost" name="Standalone">
 7      <Host appBase="D:\jbproject\xxxxx\Tomcat\webapps" debug="0" name="localhost" unpackWARs="true"/>
 8    </Engine>
 9  </Service>
10</Server>

鍦?.0涓殑server.xml鏂囦歡鏍煎紡濡備笅錛?/P>

 1<?xml version="1.0" encoding="UTF-8"?>
 2<!--This comment marks this file as generated, so it may be deleted and regenerated at any time. To preserve manual changes to this file, delete this comment.-->
 3<Server debug="0" port="8081" shutdown="SHUTDOWN">
 4  <Service name="Tomcat-Standalone">
 5    <Connector acceptCount="10" className="org.apache.catalina.connector.http.HttpConnector" connectionTimeout="60000" debug="0" maxProcessors="75" minProcessors="5" port="8080"/>
 6    <Engine debug="0" defaultHost="localhost" name="Standalone">
 7      <Host appBase="D:\jbproject\xxxxx\Tomcat\webapps" debug="0" name="localhost" unpackWARs="true">
 8        <Context debug="0" docBase="D:\jbproject\xxxxx\admin" path="/admin" reloadable="true" workDir="D:\jbproject\xxxxx\Tomcat\work\admin"/>
 9      </Host>
10    </Engine>
11  </Service>
12</Server>
13

鍦?.1涓妸鍏蜂綋鐨凜ontext鏀懼埌浜唚ebapps鐩綍涓嬮潰錛屾墍浠ュ茍涓嶈兘綆鍗曠殑copy榪囨潵灝卞彲浠ョ敤銆?BR>
      鍦↗Builder 2005涓紝姣忎釜Server閮芥槸浠lugin鐨勫艦寮忓姞鍏ョ殑錛屽叿浣撶殑jar鏂囦歡鏀懼湪lib鐩綍涓嬮潰鐨剆ervers鐩綍閲岄潰銆傜敤WinRAR鎵撳紑tomcat-jbsp.jar鏂囦歡錛屽彲浠ョ湅鍒伴噷闈㈡湁Tomcat33*.class鍜孴omcat40*.class錛屼篃灝辨槸璇村叾瀹濲Builder 2005鍏跺疄鏄湁榪欎簺server鐨勯厤緗俊鎭殑錛屽彧鏄畠闅愯棌浜嗐傞偅涔堟庝箞鎶婂畠鎵撳紑鍛紵絳旀灝卞湪MANIFEST.MF鏂囦歡閲岄潰錛屼慨鏀瑰墠鐨勬枃浠跺唴瀹瑰涓嬶細

1Implementation-Vendor: Borland Software Corp.
2Implementation-Version: 011.000.236.000
3Implementation-Title: JBuilder 2005, English Edition
4OpenTools-Servers: com.borland.jbuilder.server.tomcat.Tomcat50Server
5  com.borland.jbuilder.server.tomcat.Tomcat41Server
6

鍦ㄥ悗闈㈠啀澧炲姞涓琛岋細com.borland.jbuilder.server.tomcat.Tomcat40Server銆備繚瀛橈紝騫朵笖閲嶅惎JBuilder 2005錛岀偣鍑籈nterprise->Configure Servers錛屼綘灝嗗彲浠ョ湅鍒伴噷闈㈠浜嗕竴涓猅omcat4.0鐨凷erver銆傚懙鍛碉紝澶у姛鍛婃垚錛?BR>
      綾諱技鐨勮繕鍙互娣誨姞鍏跺畠鐨凷erver錛屼笉榪囧彧闄愪簬JBuilder 2005鏈韓鏈夌殑Server銆傚鏋滅啛鎮塉Builder 鐨刾lugin鐨勫ぇ铏懼畬鍏ㄥ彲浠ヨ嚜宸辯紪紼嬭В鍐熾?BR>

灝忕背 2005-05-12 11:56 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 亚洲精品成人久久久| 日本一区二区免费看| 国产亚洲色婷婷久久99精品| 香蕉免费一区二区三区| 日本激情猛烈在线看免费观看| 亚洲精品视频在线播放| 国产av无码专区亚洲av果冻传媒| 免费看h片的网站| a级毛片在线视频免费观看 | 国产亚洲美女精品久久久久| 亚洲伦理一区二区| 国产亚洲成归v人片在线观看| 日本免费网站观看| 四虎在线免费播放| 好吊妞视频免费视频| 成人爽A毛片免费看| 成人无遮挡裸免费视频在线观看| 7x7x7x免费在线观看| 女人体1963午夜免费视频| 国产JIZZ中国JIZZ免费看| 一级毛片不卡免费看老司机| 一级特黄录像免费播放中文版| 国产亚洲视频在线观看网址| 老妇激情毛片免费| ww在线观视频免费观看w| 99re8这里有精品热视频免费| 国产日韩AV免费无码一区二区 | 精品久久久久久亚洲| 国产亚洲婷婷香蕉久久精品| 中文字幕亚洲精品| 亚洲精品GV天堂无码男同| 免费毛片毛片网址| 6080午夜一级毛片免费看| 色影音免费色资源| 亚洲国产成人a精品不卡在线| 国产亚洲精品a在线观看| 亚洲高清中文字幕综合网| 国产精品亚洲专一区二区三区| aa级女人大片喷水视频免费| 最近免费中文在线视频| 久99精品视频在线观看婷亚洲片国产一区一级在线 |