锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产亚洲成归v人片在线观看,亚洲欧美第一成人网站7777,亚洲夂夂婷婷色拍WW47http://m.tkk7.com/javainthinking/category/2331.html鐔婄偧鐨勪釜鎬х┖闂村拰java瀛︿範涔嬫梾zh-cnTue, 27 Feb 2007 12:23:57 GMTTue, 27 Feb 2007 12:23:57 GMT60File鐨勪竴浜涚浉鍏蟲搷浣?/title><link>http://m.tkk7.com/javainthinking/archive/2005/07/27/8519.html</link><dc:creator>鐔婄偧鐨勪釜鎬х┖闂村拰java瀛︿範涔嬫梾</dc:creator><author>鐔婄偧鐨勪釜鎬х┖闂村拰java瀛︿範涔嬫梾</author><pubDate>Wed, 27 Jul 2005 01:07:00 GMT</pubDate><guid>http://m.tkk7.com/javainthinking/archive/2005/07/27/8519.html</guid><wfw:comment>http://m.tkk7.com/javainthinking/comments/8519.html</wfw:comment><comments>http://m.tkk7.com/javainthinking/archive/2005/07/27/8519.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/javainthinking/comments/commentRss/8519.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/javainthinking/services/trackbacks/8519.html</trackback:ping><description><![CDATA[<P>package com.xionglian.common;</P> <P>import java.io.File;<BR>import java.net.URL;<BR>import java.io.InputStream;<BR>import java.io.IOException;<BR>import java.io.BufferedWriter;<BR>import java.io.FileWriter;</P> <P>/**<BR> * <p>Title: </p><BR> * <p>Description: </p><BR> * <p>Copyright: Copyright (c) 2000</p><BR> * <p>Company: </p><BR> * @author 鐔婄偧<BR> * @version 1.0<BR> */</P> <P>public class FileHandle<BR>{</P> <P>  public FileHandle()<BR>  {<BR>  }</P> <P>  /**<BR>   * filename path鍜孶RL涔嬮棿鐨勮漿鎹?BR>   */<BR>  public void _File_URL()<BR>  {<BR>    String path = File.separator + "a";<BR>    System.out.println(path);<BR>    //coverting Between a filename and a URL<BR>    //create a file object<BR>    File file = new File("filename");</P> <P>    //covert a file object to a URL<BR>    URL url = null;<BR>    try<BR>    {<BR>      url=file.toURL();<BR>      System.out.println(url);<BR>    }<BR>    catch(Exception  e)<BR>    {<BR>      e.printStackTrace();<BR>    }</P> <P>    //convert a URL to a file object<BR>    file=new File(url.getFile());</P> <P>    //read the file using the URL<BR>    try<BR>    {<BR>      InputStream is=url.openStream();<BR>      //read from the InputStream<BR>    }<BR>    catch(IOException e)<BR>    {<BR>      e.printStackTrace();<BR>    }<BR>  }</P> <P>  /**<BR>   * 浠巖elative path鍒癮bsolute path涔嬮棿鐨勮漿鎹?BR>   */<BR>  public void rel_to_abspath()<BR>  {<BR>    File file=new File("filename.txt");//filename.txt doesn't need exist<BR>    file=file.getAbsoluteFile();//C:\Documents and Settings\xl\妗岄潰\First\filename</P> <P>    file=new File("test"+File.separator+"filename.txt");<BR>    file=file.getAbsoluteFile();//C:\Documents and Settings\xl\妗岄潰\First\test\filename.txt<BR>  }</P> <P>  /**<BR>   * 鍒ゆ柇涓や釜filename path鏄惁鎸囧悜鍚屼竴file<BR>   * @return boolean<BR>   */<BR>  public boolean isSameFile()<BR>  {<BR>    File file1=new File("filename");<BR>    File file2=new File("/filename");<BR>    //file1.equals(file2)=false;<BR>    try<BR>    {<BR>      //鍒╃敤File.getCanonicalFile()娑堥櫎澶氫綑鐨剆ymbol links鎴栬?."鍜?.."<BR>      file1.getCanonicalFile();<BR>      file2.getCanonicalFile();<BR>    }<BR>    catch(Exception e){}<BR>    return file1.equals(file2);//true<BR>  }</P> <P>  /**<BR>   * 鍒涘緩涓涓復鏃秚emporary鏂囦歡<BR>   * @param args<BR>   */<BR>  public void createTempFile()<BR>  {<BR>    try<BR>      {<BR>        //create temporary file<BR>        File temp = new File("temp", ".txt");<BR>        //鎺ㄥ嚭紼嬪簭鏃跺垹闄emp鏂囦歡<BR>        temp.deleteOnExit();</P> <P>        //鍚憈emp鏂囦歡涓啓content<BR>        BufferedWriter out = new BufferedWriter(new FileWriter(temp));<BR>        out.write("鐔婄偧");<BR>        out.close();<BR>      }<BR>      catch(IOException e)<BR>      {<BR>        e.printStackTrace();<BR>      }<BR>  }</P> <P>  /**<BR>   * File銆乨irectory鏇村悕鎴朏ile縐誨姩鍒板彟涓涓綅緗?BR>   * @param args<BR>   */<BR>  public void rename_move_File()<BR>  {<BR>    //rename a File or directory<BR>    File file1=new File("oldname");<BR>    File file2=new File("newname");<BR>    file1.renameTo(file2);</P> <P>    //move File<BR>    File file=new File("filename");<BR>    File dir=new File("directoryname");<BR>    file.renameTo(new File(dir,file.getName()));<BR>  }</P> <P>  public static void main(String[] args)<BR>  {</P> <P>  }</P> <P> </P> <P>  }</P><img src ="http://m.tkk7.com/javainthinking/aggbug/8519.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/javainthinking/" target="_blank">鐔婄偧鐨勪釜鎬х┖闂村拰java瀛︿範涔嬫梾</a> 2005-07-27 09:07 <a href="http://m.tkk7.com/javainthinking/archive/2005/07/27/8519.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://m.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://mtsp5.com" target="_blank">亚洲高清美女一区二区三区</a>| <a href="http://ygf123.com" target="_blank">丁香花在线观看免费观看图片</a>| <a href="http://sds54.com" target="_blank">亚洲AV成人精品网站在线播放</a>| <a href="http://nkldj.com" target="_blank">中文字幕免费在线看线人动作大片 </a>| <a href="http://99999pp.com" target="_blank">成人片黄网站色大片免费</a>| <a href="http://www-44455588.com" target="_blank">三年片免费高清版 </a>| <a href="http://kencery.com" target="_blank">亚洲精品视频免费观看</a>| <a href="http://alankell.com" target="_blank">1000部拍拍拍18免费网站</a>| <a href="http://cmanpower.com" target="_blank">亚洲综合免费视频</a>| <a href="http://junfurui.com" target="_blank">中文字幕一精品亚洲无线一区</a>| <a href="http://445645.com" target="_blank">免费黄网在线观看</a>| <a href="http://jsky163.com" target="_blank">黄色网址免费大全</a>| <a href="http://zz1220.com" target="_blank">亚洲视频免费在线观看</a>| <a href="http://jiuse54.com" target="_blank">一个人看的免费高清视频日本 </a>| <a href="http://lyczyb.com" target="_blank">美女视频黄a视频全免费</a>| <a href="http://my55572.com" target="_blank">野花香在线视频免费观看大全 </a>| <a href="http://998wc.com" target="_blank">国产精品内射视频免费</a>| <a href="http://www84847.com" target="_blank">亚洲日韩一区二区三区</a>| <a href="http://yzxjk.com" target="_blank">日本免费人成视频播放</a>| <a href="http://sx97zc.com" target="_blank">999久久久免费精品国产</a>| <a href="http://dajiaody.com" target="_blank">午夜影院免费观看</a>| <a href="http://xjywater.com" target="_blank">色www永久免费网站</a>| <a href="http://www137av.com" target="_blank">国产大片免费天天看</a>| <a href="http://xsjxp.com" target="_blank">免费VA在线观看无码</a>| <a href="http://1777000.com" target="_blank">亚洲AV无码成人网站在线观看</a>| <a href="http://shguojing.com" target="_blank">国产色在线|亚洲</a>| <a href="http://cc006.com" target="_blank">亚洲精品中文字幕乱码</a>| <a href="http://9qwx.com" target="_blank">亚洲最新视频在线观看</a>| <a href="http://shaonvfushi.com" target="_blank">亚洲va久久久噜噜噜久久男同</a>| <a href="http://wo93xyz.com" target="_blank">国产精品亚洲不卡一区二区三区 </a>| <a href="http://7x966.com" target="_blank">日本免费一本天堂在线</a>| <a href="http://sy8989.com" target="_blank">一级做a爰黑人又硬又粗免费看51社区国产精品视 </a>| <a href="http://shlamore.com" target="_blank">亚洲熟伦熟女新五十路熟妇 </a>| <a href="http://gsonlinet.com" target="_blank">粉色视频成年免费人15次</a>| <a href="http://www6yg6yg.com" target="_blank">亚洲砖码砖专无区2023</a>| <a href="http://6000cpkj.com" target="_blank">亚洲熟妇av午夜无码不卡</a>| <a href="http://quxx28.com" target="_blank">亚洲人成综合在线播放</a>| <a href="http://zhnetbar.com" target="_blank">亚洲一区二区三区国产精品无码</a>| <a href="http://lybb16.com" target="_blank">亚洲精品第一国产综合精品</a>| <a href="http://pengkaimjg.com" target="_blank">久久亚洲精精品中文字幕</a>| <a href="http://linanhotel.com" target="_blank">一二三四视频在线观看中文版免费</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>