锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲欧洲日产国码在线观看,亚洲色精品88色婷婷七月丁香,亚洲国产一区二区a毛片http://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://888-28.com" target="_blank">91短视频免费在线观看</a>| <a href="http://fsszx888.com" target="_blank">搜日本一区二区三区免费高清视频 </a>| <a href="http://www-7607.com" target="_blank">亚洲精品国产摄像头</a>| <a href="http://szwangzhongwang.com" target="_blank">免费91麻豆精品国产自产在线观看</a>| <a href="http://8654123.com" target="_blank">最近高清国语中文在线观看免费</a>| <a href="http://33a55.com" target="_blank">国产亚洲精品岁国产微拍精品</a>| <a href="http://2266511.com" target="_blank">国产精品亚洲一区二区三区在线观看</a>| <a href="http://lyaa17.com" target="_blank">中文字幕视频免费</a>| <a href="http://ywzms.com" target="_blank">亚洲国产精品不卡毛片a在线</a>| <a href="http://cqtchtwq.com" target="_blank">亚洲国产香蕉碰碰人人</a>| <a href="http://xjkakatong.com" target="_blank">成人久久久观看免费毛片</a>| <a href="http://baicaijia666.com" target="_blank">成人爽A毛片免费看</a>| <a href="http://chch12.com" target="_blank">国产精品国产亚洲精品看不卡</a>| <a href="http://helloyp.com" target="_blank">一级毛片正片免费视频手机看</a>| <a href="http://359777b.com" target="_blank">国产91在线免费</a>| <a href="http://zzzttt669.com" target="_blank">亚洲网址在线观看你懂的</a>| <a href="http://ge2hao.com" target="_blank">一边摸一边桶一边脱免费视频</a>| <a href="http://wwwxue1888.com" target="_blank">免费高清在线爱做视频</a>| <a href="http://89kino.com" target="_blank">亚洲日本乱码卡2卡3卡新区</a>| <a href="http://yeyaweiban.com" target="_blank">在线看无码的免费网站</a>| <a href="http://gzmsijz.com" target="_blank">亚洲午夜免费视频</a>| <a href="http://cg-fun.com" target="_blank">免费人成黄页在线观看日本</a>| <a href="http://s8023.com" target="_blank">国产亚洲精品资源在线26u</a>| <a href="http://ccccccx.com" target="_blank">中国一级特黄的片子免费 </a>| <a href="http://tccqdy.com" target="_blank">免费一级毛片在级播放</a>| <a href="http://cuuka.com" target="_blank">亚洲乱亚洲乱妇24p</a>| <a href="http://shaiyahx.com" target="_blank">免费观看的a级毛片的网站</a>| <a href="http://dnf1000.com" target="_blank">亚洲精品国产摄像头</a>| <a href="http://ghdc5.com" target="_blank">亚洲国产成人五月综合网</a>| <a href="http://gbn21.com" target="_blank">eeuss免费天堂影院</a>| <a href="http://worldbiao.com" target="_blank">亚洲av永久无码精品秋霞电影影院</a>| <a href="http://by2988.com" target="_blank">a级毛片免费高清毛片视频</a>| <a href="http://ww11axax.com" target="_blank">亚洲2022国产成人精品无码区</a>| <a href="http://s4lm0x.com" target="_blank">无码国产精品一区二区免费式芒果</a>| <a href="http://x3013.com" target="_blank">亚洲ⅴ国产v天堂a无码二区</a>| <a href="http://717795.com" target="_blank">国产免费一区二区三区</a>| <a href="http://tmg-beelen.com" target="_blank">亚洲 日韩经典 中文字幕 </a>| <a href="http://kkjk123.com" target="_blank">a级毛片在线免费观看</a>| <a href="http://zjszbwzl.com" target="_blank">亚洲乱亚洲乱妇无码麻豆</a>| <a href="http://www-2236444.com" target="_blank">亚洲成a人片在线观看无码专区</a>| <a href="http://watchmini.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>