锘??xml version="1.0" encoding="utf-8" standalone="yes"?>aaa日本高清在线播放免费观看,欧美日韩亚洲网,免费观看久久avhttp://www.aygfsteel.com/mooninwell/zh-cnSun, 18 May 2025 16:13:24 GMTSun, 18 May 2025 16:13:24 GMT60緇忓吀鐨処O浠g爜涓轟粈涔堟湁璧勬簮娉勬紡錛?/title><link>http://www.aygfsteel.com/mooninwell/archive/2006/03/24/37277.html</link><dc:creator>mooninwell</dc:creator><author>mooninwell</author><pubDate>Fri, 24 Mar 2006 13:47:00 GMT</pubDate><guid>http://www.aygfsteel.com/mooninwell/archive/2006/03/24/37277.html</guid><wfw:comment>http://www.aygfsteel.com/mooninwell/comments/37277.html</wfw:comment><comments>http://www.aygfsteel.com/mooninwell/archive/2006/03/24/37277.html#Feedback</comments><slash:comments>10</slash:comments><wfw:commentRss>http://www.aygfsteel.com/mooninwell/comments/commentRss/37277.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/mooninwell/services/trackbacks/37277.html</trackback:ping><description><![CDATA[ <p>鏈榪戝湪寮鍙戜腑錛屼嬌鐢ㄥ埌IO鎿嶄綔榪涜鍙嶅簭鍒楀寲鎿嶄綔錛屼嬌鐢ㄤ簡(jiǎn)鍦ㄥ悇縐嶈祫鏂欎腑甯歌鐨勫叧浜嶪O鎿嶄綔鐨勭粡鍏鎬唬鐮侊紝鍦ㄨ嚜嫻嬪拰嫻嬭瘯浜哄憳鐨勬祴璇曚腑閮芥病鏈夊彂鐜頒換浣曢棶棰橈紒<br />浠g爜濡備笅</p> <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: #0000ff">public</span> <span style="COLOR: #000000">聽Object聽readObject(File聽file)<br />聽聽聽聽{<br />聽聽聽聽聽聽聽聽Object聽o聽</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: #0000ff">if</span> <span style="COLOR: #000000">聽(file.exists())<br />聽聽聽聽聽聽聽聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽ObjectInputStream聽ois聽</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: #0000ff">try</span> <span style="COLOR: #000000"> <br />聽聽聽聽聽聽聽聽聽聽聽聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽ois聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">new</span> <span style="COLOR: #000000">聽ObjectInputStream(</span> <span style="COLOR: #0000ff">new</span> <span style="COLOR: #000000">聽FileInputStream(file));<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽o聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽ois.readObject();<br />聽聽聽聽聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">catch</span> <span style="COLOR: #000000">聽(Throwable聽e)<br />聽聽聽聽聽聽聽聽聽聽聽聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽e.printStackTrace();<br />聽聽聽聽聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">finally</span> <span style="COLOR: #000000"> <br />聽聽聽聽聽聽聽聽聽聽聽聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">if</span> <span style="COLOR: #000000">聽(ois聽</span> <span style="COLOR: #000000">!=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">null</span> <span style="COLOR: #000000">)<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">try</span> <span style="COLOR: #000000"> <br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽ois.close();<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">catch</span> <span style="COLOR: #000000">聽(IOException聽e)<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽e.printStackTrace();<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽聽聽聽聽}聽聽聽聽聽聽聽聽聽聽聽聽<br />聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">return</span> <span style="COLOR: #000000">聽o;<br />聽聽聽聽}</span> </div> <br />蹇界劧涓澶╂祴璇曚漢鍛樿仈緋繪垜璇磋繖閮ㄥ垎浠g爜瀵艱嚧緋葷粺鏃犳硶鍚姩錛屽師鍥犱粎浠呮槸鍥犱負(fù)璁╄閮ㄥ垎浠g爜涓嶆柇鐨勫鐞嗕竴涓負(fù)搴忓垪鍖栨枃浠訛紒<br />鎴戜粩緇嗗垎鏋愪竴涓嬩唬鐮侊紝娌℃湁闂鍛錛屽弽搴忓垪鍖栧け璐ュ氨鐩存帴鍏抽棴浜?jiǎn)ois瀵硅薄錛屼笉鍙兘閫犳垚璧勬簮娉勬紡錛屼簬鏄敤鍗曟璺熻釜鐨勬柟寮?br />鏌ョ湅澶勭悊闈炴硶鏂囦歡鐨勮緇嗘儏鍐碉細(xì)<br />1銆佸垱寤篎ileInputStream 娌℃湁闂<br />2銆佸垱寤篛bjectInputStream澶辮觸 娌℃湁闂<br />3銆佽繘鍏atch鍧楋紝鎵撳嵃鍫嗘爤 娌℃湁闂<br />4銆佽繘鍏innaly鍧楋紝if (ois != null)涓篺alse錛岃繖鏃舵剰璇嗗埌鍑洪棶棰樹簡(jiǎn)<br />鍘熸潵鍒涘緩FileInputStream鎴愬姛錛屾鏃跺凡緇忕敵璇蜂簡(jiǎn)璧勬簮錛屼絾鍦ㄥ悗緇垱寤篛bjectInputStream鏃跺け璐ワ紝浣嗘鏃跺張娌℃湁淇濆瓨FileInputStream<br />鐨勫紩鐢紝鏃犳硶閲婃斁璧勬簮錛屾渶緇堝鑷翠簡(jiǎn)璧勬簮娉勬紡銆傜湅鏉ュ湪浠ュ悗鐨?font color="#0000ff"><strong>IO鐨勭紪紼嬩腑涓瀹氳淇濆瓨鍩烘湰嫻佺殑寮曠敤</strong></font>錛屽惁鍒欏湪綾諱技涓婇潰鐨勬儏鍐?br />鍦ㄨ漿鎹㈡祦澶辮觸鍚庯紝鏃犳硶瀹夊叏鐨勯噴鏀捐祫婧愶紒<br />涓嬮潰涓轟慨鏀瑰悗鐨勪唬鐮侊細(xì)<br /><br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽Object聽readObject(File聽file)<br />聽聽聽聽{<br />聽聽聽聽聽聽聽聽Object聽o聽</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: #0000ff">if</span><span style="COLOR: #000000">聽(file.exists())<br />聽聽聽聽聽聽聽聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽FileInputStream聽fis聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000">;<br />聽聽聽聽聽聽聽聽聽聽聽聽ObjectInputStream聽ois聽</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: #0000ff">try</span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽聽聽聽聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽fis聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">聽FileInputStream(file);<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽ois聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">聽ObjectInputStream(fis);<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽o聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽ois.readObject();<br />聽聽聽聽聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">catch</span><span style="COLOR: #000000">聽(Throwable聽e)<br />聽聽聽聽聽聽聽聽聽聽聽聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽e.printStackTrace();<br />聽聽聽聽聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">finally</span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽聽聽聽聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽(fis聽</span><span style="COLOR: #000000">!=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000">)<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">try</span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽fis.close();<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">catch</span><span style="COLOR: #000000">聽(IOException聽e)<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽e.printStackTrace();<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽聽聽聽聽}聽聽聽聽聽聽聽聽聽聽聽聽<br />聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">聽o;<br />聽聽聽聽}</span></div><br /><br /><img src ="http://www.aygfsteel.com/mooninwell/aggbug/37277.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/mooninwell/" target="_blank">mooninwell</a> 2006-03-24 21:47 <a href="http://www.aygfsteel.com/mooninwell/archive/2006/03/24/37277.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">油尖旺区</a>| <a href="http://" target="_blank">蕉岭县</a>| <a href="http://" target="_blank">上栗县</a>| <a href="http://" target="_blank">全南县</a>| <a href="http://" target="_blank">霍邱县</a>| <a href="http://" target="_blank">九寨沟县</a>| <a href="http://" target="_blank">绍兴县</a>| <a href="http://" target="_blank">南郑县</a>| <a href="http://" target="_blank">临泽县</a>| <a href="http://" target="_blank">中阳县</a>| <a href="http://" target="_blank">洞头县</a>| <a href="http://" target="_blank">上犹县</a>| <a href="http://" target="_blank">兴国县</a>| <a href="http://" target="_blank">商都县</a>| <a href="http://" target="_blank">连南</a>| <a href="http://" target="_blank">永靖县</a>| <a href="http://" target="_blank">固始县</a>| <a href="http://" target="_blank">黑河市</a>| <a href="http://" target="_blank">运城市</a>| <a href="http://" target="_blank">新津县</a>| <a href="http://" target="_blank">新河县</a>| <a href="http://" target="_blank">天全县</a>| <a href="http://" target="_blank">鄯善县</a>| <a href="http://" target="_blank">庐江县</a>| <a href="http://" target="_blank">儋州市</a>| <a href="http://" target="_blank">洛扎县</a>| <a href="http://" target="_blank">建湖县</a>| <a href="http://" target="_blank">北海市</a>| <a href="http://" target="_blank">西青区</a>| <a href="http://" target="_blank">常山县</a>| <a href="http://" target="_blank">鹿邑县</a>| <a href="http://" target="_blank">宜章县</a>| <a href="http://" target="_blank">雅江县</a>| <a href="http://" target="_blank">普定县</a>| <a href="http://" target="_blank">安康市</a>| <a href="http://" target="_blank">仁寿县</a>| <a href="http://" target="_blank">团风县</a>| <a href="http://" target="_blank">巴林左旗</a>| <a href="http://" target="_blank">柳林县</a>| <a href="http://" target="_blank">屏东县</a>| <a href="http://" target="_blank">绵阳市</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>