锘??xml version="1.0" encoding="utf-8" standalone="yes"?>成人网男人的天堂,久久久国产视频,亚洲国内精品在线http://www.aygfsteel.com/marswj/category/5272.htmlzh-cnTue, 27 Feb 2007 12:39:11 GMTTue, 27 Feb 2007 12:39:11 GMT60eclipse plugin for J2EEhttp://www.aygfsteel.com/marswj/archive/2005/12/07/22916.htmlmarswjmarswjWed, 07 Dec 2005 13:45:00 GMThttp://www.aygfsteel.com/marswj/archive/2005/12/07/22916.htmlhttp://www.aygfsteel.com/marswj/comments/22916.htmlhttp://www.aygfsteel.com/marswj/archive/2005/12/07/22916.html#Feedback0http://www.aygfsteel.com/marswj/comments/commentRss/22916.htmlhttp://www.aygfsteel.com/marswj/services/trackbacks/22916.htmlMyEclipse
http://www.myeclipseide.com/

Eclipse Web Tools Platform (WTP)
http://www.eclipse.org/webtools/

BEA Workshop Studio(NitroX)
http://www.m7.com/

Lomboz
http://www.objectlearn.com/index.jsp



marswj 2005-12-07 21:45 鍙戣〃璇勮
]]>
鍏蟲敞欏圭洰http://www.aygfsteel.com/marswj/archive/2005/12/01/22167.htmlmarswjmarswjThu, 01 Dec 2005 14:30:00 GMThttp://www.aygfsteel.com/marswj/archive/2005/12/01/22167.htmlhttp://www.aygfsteel.com/marswj/comments/22167.htmlhttp://www.aygfsteel.com/marswj/archive/2005/12/01/22167.html#Feedback0http://www.aygfsteel.com/marswj/comments/commentRss/22167.htmlhttp://www.aygfsteel.com/marswj/services/trackbacks/22167.html
http://ws.apache.org/axis2/

Jetspeed-2
http://portals.apache.org/jetspeed-2/

eclipse
http://eclipse.org/eclipse/index.html

Business Intelligence and Reporting Tools
http://eclipse.org/birt/

MyEclipse Enterprise Workbench
http://www.myeclipseide.com/

WebWork
http://www.opensymphony.com/webwork/

PostgreSQL
http://www.postgresql.org/

Geronimo
http://geronimo.apache.org/



marswj 2005-12-01 22:30 鍙戣〃璇勮
]]>
綆鍗曠殑閫愯璇誨彇鏂囨湰鏂囦歡鐨勬柟娉?/title><link>http://www.aygfsteel.com/marswj/archive/2005/11/30/22034.html</link><dc:creator>marswj</dc:creator><author>marswj</author><pubDate>Wed, 30 Nov 2005 13:08:00 GMT</pubDate><guid>http://www.aygfsteel.com/marswj/archive/2005/11/30/22034.html</guid><wfw:comment>http://www.aygfsteel.com/marswj/comments/22034.html</wfw:comment><comments>http://www.aygfsteel.com/marswj/archive/2005/11/30/22034.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/marswj/comments/commentRss/22034.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/marswj/services/trackbacks/22034.html</trackback:ping><description><![CDATA[<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><SPAN style="COLOR: #008080"> 1</SPAN><IMG id=Codehighlighter1_0_42_Open_Image onclick="this.style.display='none'; Codehighlighter1_0_42_Open_Text.style.display='none'; Codehighlighter1_0_42_Closed_Image.style.display='inline'; Codehighlighter1_0_42_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_0_42_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_0_42_Closed_Text.style.display='none'; Codehighlighter1_0_42_Open_Image.style.display='inline'; Codehighlighter1_0_42_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align=top><SPAN id=Codehighlighter1_0_42_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_0_42_Open_Text><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000"> 鏂囦歡鍚?TestReadFile.java 鍒涘緩鏃ユ湡:2005-11-30 </SPAN><SPAN style="COLOR: #008000">*/</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080"> 2</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080"> 3</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">package</SPAN><SPAN style="COLOR: #000000"> cn.vcol.file;<BR></SPAN><SPAN style="COLOR: #008080"> 4</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080"> 5</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">import</SPAN><SPAN style="COLOR: #000000"> java.io.BufferedReader;<BR></SPAN><SPAN style="COLOR: #008080"> 6</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">import</SPAN><SPAN style="COLOR: #000000"> java.io.FileNotFoundException;<BR></SPAN><SPAN style="COLOR: #008080"> 7</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">import</SPAN><SPAN style="COLOR: #000000"> java.io.FileReader;<BR></SPAN><SPAN style="COLOR: #008080"> 8</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">import</SPAN><SPAN style="COLOR: #000000"> java.io.IOException;<BR></SPAN><SPAN style="COLOR: #008080"> 9</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">10</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_193_223_Open_Image onclick="this.style.display='none'; Codehighlighter1_193_223_Open_Text.style.display='none'; Codehighlighter1_193_223_Closed_Image.style.display='inline'; Codehighlighter1_193_223_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_193_223_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_193_223_Closed_Text.style.display='none'; Codehighlighter1_193_223_Open_Image.style.display='inline'; Codehighlighter1_193_223_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_193_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">/** */</SPAN><SPAN id=Codehighlighter1_193_223_Open_Text><SPAN style="COLOR: #008000">/**</SPAN><SPAN style="COLOR: #008000"><BR></SPAN><SPAN style="COLOR: #008080">11</SPAN><SPAN style="COLOR: #008000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top> * </SPAN><SPAN style="COLOR: #808080">@author</SPAN><SPAN style="COLOR: #008000"> blog.vcol.cn<BR></SPAN><SPAN style="COLOR: #008080">12</SPAN><SPAN style="COLOR: #008000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top> </SPAN><SPAN style="COLOR: #008000">*/</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">13</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> TestReadFile<BR></SPAN><SPAN style="COLOR: #008080">14</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_251_1144_Open_Image onclick="this.style.display='none'; Codehighlighter1_251_1144_Open_Text.style.display='none'; Codehighlighter1_251_1144_Closed_Image.style.display='inline'; Codehighlighter1_251_1144_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_251_1144_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_251_1144_Closed_Text.style.display='none'; Codehighlighter1_251_1144_Open_Image.style.display='inline'; Codehighlighter1_251_1144_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_251_1144_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.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_251_1144_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080">15</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> main(String[] args)<BR></SPAN><SPAN style="COLOR: #008080">16</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_294_1142_Open_Image onclick="this.style.display='none'; Codehighlighter1_294_1142_Open_Text.style.display='none'; Codehighlighter1_294_1142_Closed_Image.style.display='inline'; Codehighlighter1_294_1142_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_294_1142_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_294_1142_Closed_Text.style.display='none'; Codehighlighter1_294_1142_Open_Image.style.display='inline'; Codehighlighter1_294_1142_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </SPAN><SPAN id=Codehighlighter1_294_1142_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.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_294_1142_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080">17</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>        String FilePath </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">D:/test.txt</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;<BR></SPAN><SPAN style="COLOR: #008080">18</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>        FileReader fr </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">null</SPAN><SPAN style="COLOR: #000000">;<BR></SPAN><SPAN style="COLOR: #008080">19</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>        BufferedReader br </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">null</SPAN><SPAN style="COLOR: #000000">;<BR></SPAN><SPAN style="COLOR: #008080">20</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>        StringBuffer sBuffer </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> StringBuffer();<BR></SPAN><SPAN style="COLOR: #008080">21</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">try</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">22</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_436_842_Open_Image onclick="this.style.display='none'; Codehighlighter1_436_842_Open_Text.style.display='none'; Codehighlighter1_436_842_Closed_Image.style.display='inline'; Codehighlighter1_436_842_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_436_842_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_436_842_Closed_Text.style.display='none'; Codehighlighter1_436_842_Open_Image.style.display='inline'; Codehighlighter1_436_842_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>        </SPAN><SPAN id=Codehighlighter1_436_842_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.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_436_842_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080">23</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>            </SPAN><SPAN style="COLOR: #0000ff">try</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">24</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_448_513_Open_Image onclick="this.style.display='none'; Codehighlighter1_448_513_Open_Text.style.display='none'; Codehighlighter1_448_513_Closed_Image.style.display='inline'; Codehighlighter1_448_513_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_448_513_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_448_513_Closed_Text.style.display='none'; Codehighlighter1_448_513_Open_Image.style.display='inline'; Codehighlighter1_448_513_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>            </SPAN><SPAN id=Codehighlighter1_448_513_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.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_448_513_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080">25</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>                fr </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> FileReader(FilePath);</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 寤虹珛FileReader瀵硅薄錛屽茍瀹炰緥鍖栦負fr</SPAN><SPAN style="COLOR: #008000"><BR></SPAN><SPAN style="COLOR: #008080">26</SPAN><SPAN style="COLOR: #008000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top></SPAN><SPAN style="COLOR: #000000">            }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">27</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>            </SPAN><SPAN style="COLOR: #0000ff">catch</SPAN><SPAN style="COLOR: #000000"> (FileNotFoundException e)<BR></SPAN><SPAN style="COLOR: #008080">28</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_553_583_Open_Image onclick="this.style.display='none'; Codehighlighter1_553_583_Open_Text.style.display='none'; Codehighlighter1_553_583_Closed_Image.style.display='inline'; Codehighlighter1_553_583_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_553_583_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_553_583_Closed_Text.style.display='none'; Codehighlighter1_553_583_Open_Image.style.display='inline'; Codehighlighter1_553_583_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>            </SPAN><SPAN id=Codehighlighter1_553_583_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.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_553_583_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080">29</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>                e.printStackTrace();<BR></SPAN><SPAN style="COLOR: #008080">30</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>            }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">31</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>            br </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> BufferedReader(fr);</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 寤虹珛BufferedReader瀵硅薄錛屽茍瀹炰緥鍖栦負br</SPAN><SPAN style="COLOR: #008000"><BR></SPAN><SPAN style="COLOR: #008080">32</SPAN><SPAN style="COLOR: #008000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">            String Line </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> br.readLine();</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 浠庢枃浠惰鍙栦竴琛屽瓧絎︿覆<BR></SPAN><SPAN style="COLOR: #008080">33</SPAN><SPAN style="COLOR: #008000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>            </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 鍒ゆ柇璇誨彇鍒扮殑瀛楃涓叉槸鍚︿笉涓虹┖</SPAN><SPAN style="COLOR: #008000"><BR></SPAN><SPAN style="COLOR: #008080">34</SPAN><SPAN style="COLOR: #008000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">            </SPAN><SPAN style="COLOR: #0000ff">while</SPAN><SPAN style="COLOR: #000000"> (Line </SPAN><SPAN style="COLOR: #000000">!=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">null</SPAN><SPAN style="COLOR: #000000">)<BR></SPAN><SPAN style="COLOR: #008080">35</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_739_838_Open_Image onclick="this.style.display='none'; Codehighlighter1_739_838_Open_Text.style.display='none'; Codehighlighter1_739_838_Closed_Image.style.display='inline'; Codehighlighter1_739_838_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_739_838_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_739_838_Closed_Text.style.display='none'; Codehighlighter1_739_838_Open_Image.style.display='inline'; Codehighlighter1_739_838_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>            </SPAN><SPAN id=Codehighlighter1_739_838_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.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_739_838_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080">36</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>                sBuffer.append(Line);<BR></SPAN><SPAN style="COLOR: #008080">37</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>                sBuffer.append(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">\n</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR></SPAN><SPAN style="COLOR: #008080">38</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>                Line </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> br.readLine();</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 浠庢枃浠朵腑緇х畫璇誨彇涓琛屾暟鎹?/SPAN><SPAN style="COLOR: #008000"><BR></SPAN><SPAN style="COLOR: #008080">39</SPAN><SPAN style="COLOR: #008000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top></SPAN><SPAN style="COLOR: #000000">            }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">40</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>        }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">41</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">catch</SPAN><SPAN style="COLOR: #000000"> (IOException e)<BR></SPAN><SPAN style="COLOR: #008080">42</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_870_898_Open_Image onclick="this.style.display='none'; Codehighlighter1_870_898_Open_Text.style.display='none'; Codehighlighter1_870_898_Closed_Image.style.display='inline'; Codehighlighter1_870_898_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_870_898_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_870_898_Closed_Text.style.display='none'; Codehighlighter1_870_898_Open_Image.style.display='inline'; Codehighlighter1_870_898_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>        </SPAN><SPAN id=Codehighlighter1_870_898_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.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_870_898_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080">43</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>            e.printStackTrace();<BR></SPAN><SPAN style="COLOR: #008080">44</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>        }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">45</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">finally</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">46</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_912_1095_Open_Image onclick="this.style.display='none'; Codehighlighter1_912_1095_Open_Text.style.display='none'; Codehighlighter1_912_1095_Closed_Image.style.display='inline'; Codehighlighter1_912_1095_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_912_1095_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_912_1095_Closed_Text.style.display='none'; Codehighlighter1_912_1095_Open_Image.style.display='inline'; Codehighlighter1_912_1095_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>        </SPAN><SPAN id=Codehighlighter1_912_1095_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.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_912_1095_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080">47</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>            </SPAN><SPAN style="COLOR: #0000ff">try</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">48</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_924_1031_Open_Image onclick="this.style.display='none'; Codehighlighter1_924_1031_Open_Text.style.display='none'; Codehighlighter1_924_1031_Closed_Image.style.display='inline'; Codehighlighter1_924_1031_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_924_1031_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_924_1031_Closed_Text.style.display='none'; Codehighlighter1_924_1031_Open_Image.style.display='inline'; Codehighlighter1_924_1031_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>            </SPAN><SPAN id=Codehighlighter1_924_1031_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.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_924_1031_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080">49</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>                </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000"> (br </SPAN><SPAN style="COLOR: #000000">!=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">null</SPAN><SPAN style="COLOR: #000000">)<BR></SPAN><SPAN style="COLOR: #008080">50</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>                    br.close();</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 鍏抽棴BufferedReader瀵硅薄</SPAN><SPAN style="COLOR: #008000"><BR></SPAN><SPAN style="COLOR: #008080">51</SPAN><SPAN style="COLOR: #008000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">                </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000"> (fr </SPAN><SPAN style="COLOR: #000000">!=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">null</SPAN><SPAN style="COLOR: #000000">)<BR></SPAN><SPAN style="COLOR: #008080">52</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>                    fr.close();</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 鍏抽棴鏂囦歡</SPAN><SPAN style="COLOR: #008000"><BR></SPAN><SPAN style="COLOR: #008080">53</SPAN><SPAN style="COLOR: #008000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top></SPAN><SPAN style="COLOR: #000000">            }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">54</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>            </SPAN><SPAN style="COLOR: #0000ff">catch</SPAN><SPAN style="COLOR: #000000"> (IOException e)<BR></SPAN><SPAN style="COLOR: #008080">55</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_1061_1091_Open_Image onclick="this.style.display='none'; Codehighlighter1_1061_1091_Open_Text.style.display='none'; Codehighlighter1_1061_1091_Closed_Image.style.display='inline'; Codehighlighter1_1061_1091_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1061_1091_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1061_1091_Closed_Text.style.display='none'; Codehighlighter1_1061_1091_Open_Image.style.display='inline'; Codehighlighter1_1061_1091_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>            </SPAN><SPAN id=Codehighlighter1_1061_1091_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.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_1061_1091_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080">56</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>                e.printStackTrace();<BR></SPAN><SPAN style="COLOR: #008080">57</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>            }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">58</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>        }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">59</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>        </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> 杈撳嚭璇誨彇鐨勭粨鏋?/SPAN><SPAN style="COLOR: #008000"><BR></SPAN><SPAN style="COLOR: #008080">60</SPAN><SPAN style="COLOR: #008000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">        System.out.println(sBuffer);<BR></SPAN><SPAN style="COLOR: #008080">61</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">62</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">63</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV><img src ="http://www.aygfsteel.com/marswj/aggbug/22034.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/marswj/" target="_blank">marswj</a> 2005-11-30 21:08 <a href="http://www.aygfsteel.com/marswj/archive/2005/11/30/22034.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>涓涓畝鍗曠殑鍛ㄦ湡鎬imerhttp://www.aygfsteel.com/marswj/archive/2005/11/25/21454.htmlmarswjmarswjFri, 25 Nov 2005 12:32:00 GMThttp://www.aygfsteel.com/marswj/archive/2005/11/25/21454.htmlhttp://www.aygfsteel.com/marswj/comments/21454.htmlhttp://www.aygfsteel.com/marswj/archive/2005/11/25/21454.html#Feedback0http://www.aygfsteel.com/marswj/comments/commentRss/21454.htmlhttp://www.aygfsteel.com/marswj/services/trackbacks/21454.html 1/* 鏂囦歡鍚?EggTimer.java 鍒涘緩鏃ユ湡:2005-11-25 */
 2
 3package cn.vcol.timer;
 4
 5import java.text.SimpleDateFormat;
 6import java.util.Calendar;
 7import java.util.Date;
 8import java.util.Timer;
 9import java.util.TimerTask;
10
11/**
12 * @author blog.vcol.cn
13 */

14public class EggTimer
15{
16    private final Timer timer = new Timer();
17
18    private void start()
19    {
20        long period = 2 * 60 * 1000;// 鍛ㄦ湡涓?鍒嗛挓
21        timer.schedule(new TimerTask()
22        {
23            public void run()
24            {
25                System.out.println("鏈榪愯浜?" + getFormatDate(new Date()));
26                playSound();
27            }

28
29            private void playSound()
30            {
31                System.out.println("Your egg is ready!");
32                // Start a new thread to play a sound
33            }

34        }
, getDateTime(), period);
35    }

36
37    public static void main(String[] args)
38    {
39        EggTimer eggTimer = new EggTimer();
40        eggTimer.start();
41    }

42
43    /**
44     * 棣栨榪愯鐨勬椂闂?BR>45     * @return
46     */

47    private Date getDateTime()
48    {
49        Calendar calendar = Calendar.getInstance();
50        Date date = new Date();
51        System.out.println("紼嬪簭寮濮嬩簬:" + getFormatDate(date));
52        calendar.setTime(date);
53        // 璁懼畾鏃墮棿
54        calendar.setFirstDayOfWeek(Calendar.MONDAY);// 璁懼畾鏄熸湡涓涓轟竴涓槦鏈熺殑絎竴澶?/SPAN>
55        calendar.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY);// 鏈懆鐨勬槦鏈熸棩(鐩稿浜庣▼搴忚繍琛屾椂)
56        calendar.set(Calendar.HOUR_OF_DAY, 14);
57        calendar.set(Calendar.MINUTE, 57);
58        calendar.set(Calendar.SECOND, 0);
59        //
60        System.out.println("棣栨榪愯浜?" + getFormatDate(calendar.getTime()));
61        return calendar.getTime();
62    }

63
64    /**
65     * 鏍煎紡鍖栨棩鏈?BR>66     * @param date
67     * @return
68     */

69    private String getFormatDate(Date date)
70    {
71        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
72        return sdf.format(date);
73    }

74}

75

marswj 2005-11-25 20:32 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 边坝县| 嘉定区| 额尔古纳市| 永寿县| 廊坊市| 静海县| 明星| 黄龙县| 永安市| 云浮市| 罗甸县| 万源市| 防城港市| 布尔津县| 沈阳市| 招远市| 红桥区| 黑龙江省| 兴隆县| 左权县| 比如县| 荣昌县| 江西省| 报价| 德化县| 哈巴河县| 海阳市| 玛曲县| 铜山县| 美姑县| 库尔勒市| 邹平县| 西畴县| 卢龙县| 无为县| 白玉县| 小金县| 临沧市| 岚皋县| 临西县| 昭苏县|