亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? file.java

?? kaffe Java 解釋器語言,源碼,Java的子集系統,開放源代碼
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/* File.java -- Class representing a file on disk   Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version. GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING.  If not, write to theFree Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA02111-1307 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library.  Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule.  An independent module is a module which is not derived fromor based on this library.  If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so.  If you do not wish to do so, delete thisexception statement from your version. */package java.io;import java.net.MalformedURLException;import java.net.URISyntaxException;import java.net.URL;import java.net.URI;import gnu.classpath.Configuration;import gnu.java.io.PlatformHelper;import java.util.LinkedList;import java.util.Iterator;/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3 * "The Java Language Specification", ISBN 0-201-63451-1 * Status:  Complete to version 1.3. *//** * This class represents a file or directory on a local disk.  It provides * facilities for dealing with a variety of systems that use various * types of path separators ("/" versus "\", for example).  It also * contains method useful for creating and deleting files and directories. * * @author Aaron M. Renn <arenn@urbanophile.com> * @author Tom Tromey <tromey@cygnus.com> */public class File implements Serializable, Comparable{  private static final long serialVersionUID = 301077366599181567L;  /**   * This is the path separator string for the current host. This field   * contains the value of the <code>file.separator</code> system property.   * An example separator string would be "/" on the GNU system.   */  public static final String separator = System.getProperty("file.separator");  /**   * This is the first character of the file separator string.  On many   * hosts (for example, on the GNU system), this represents the entire    * separator string.  The complete separator string is obtained from the   * <code>file.separator</code>system property.   */  public static final char separatorChar = separator.charAt(0);    /**   * This is the string that is used to separate the host name from the   * path name in paths than include the host name.  It is the value of   * the <code>path.separator</code> system property.   */  public static final String pathSeparator    = System.getProperty("path.separator");    /**   * This is the first character of the string used to separate the host name   * from the path name in paths that include a host.  The separator string   * is taken from the <code>path.separator</code> system property.   */  public static final char pathSeparatorChar = pathSeparator.charAt(0);  // FIXME: We support only caseSensitive filesystems currently.  static boolean caseSensitive = true;    static  {    if (Configuration.INIT_LOAD_LIBRARY)      {        System.loadLibrary ("io");      }  }    /**   * This is the path to the file set when the object is created.  It   * may be an absolute or relative path name.   */  private String path;  /*   * This native method does the actual check of whether or not a file   * is a plain file or not.  It also handles the existence check to   * eliminate the overhead of a call to exists()   */  private native boolean isFileInternal(String path);  /*   * This method does the actual check of whether or not a file is a   * directory or not.  It also handle the existence check to eliminate   * the overhead of a call to exists()   */  private native boolean isDirectoryInternal(String path);  /**   * This native method checks file permissions for reading   */  private synchronized native boolean canReadInternal(String path);  /**   * This native method checks file permissions for writing   */  private synchronized native boolean canWriteInternal(String path);  /**   * This method tests whether or not the current thread is allowed to   * to read the file pointed to by this object.  This will be true if and   * and only if 1) the file exists and 2) the <code>SecurityManager</code>   * (if any) allows access to the file via it's <code>checkRead</code>   * method 3) the file is readable.   *   * @return <code>true</code> if reading is allowed,    * <code>false</code> otherwise   *   * @exception SecurityException If the <code>SecurityManager</code>    * does not allow access to the file   */  public boolean canRead()  {    // Test for existence. This also does the SecurityManager check    if (!exists())      return false;    return canReadInternal (path);  }  /**   * This method test whether or not the current thread is allowed to   * write to this object.  This will be true if and only if 1) The   * <code>SecurityManager</code> (if any) allows write access to the   * file and 2) The file exists and 3) The file is writable.  To determine   * whether or not a non-existent file can be created, check the parent   * directory for write access.   *   * @return <code>true</code> if writing is allowed, <code>false</code>    * otherwise   *   * @exception SecurityException If the <code>SecurityManager</code>    * does not allow access to the file   */  public boolean canWrite()  {    // We still need to do a SecurityCheck since exists() only checks    // for read access    checkWrite();         // Test for existence.  This is required by the spec    if (!exists())      return false;    if (!isDirectory())      return canWriteInternal (path);    else      try        {          /* If the separator is '\' a DOS-style-filesystem is assumed             and a short name is used, otherwise use a long name.             WARNGIN: some implementation of DOS-style-filesystems also             accept '/' as separator. In that case the following code             will fail.          */          String filename = (separatorChar!='\\')?"test-dir-write":"tst";  	  File test = createTempFile (filename, null, this);  	  return (test != null && test.delete());        }      catch (IOException ioe)        {  	  return false;        }  }  /**   * This method creates a new file of zero length with the same name as   * the path of this <code>File</code> object if an only if that file   * does not already exist.   * <p>   * A <code>SecurityManager</code>checkWrite</code> check is done prior   * to performing this action.   *   * @return <code>true</code> if the file was created, <code>false</code> if   * the file alread existed.   *   * @exception IOException If an I/O error occurs   * @exception SecurityException If the <code>SecurityManager</code> will   * not allow this operation to be performed.   *   * @since 1.2   */  public boolean createNewFile() throws IOException  {    checkWrite();    return createInternal (path);  }   /*   * This native method handles the actual deleting of the file   */  private native boolean deleteInternal(String path);  /**   * This method deletes the file represented by this object.  If this file   * is a directory, it must be empty in order for the delete to succeed.   *   * @return <code>true</code> if the file was deleted, <code>false</code>    * otherwise   *   * @exception SecurityException If deleting of the file is not allowed   */  public synchronized boolean delete()  {    SecurityManager s = System.getSecurityManager();        if (s != null)      s.checkDelete (path);        return deleteInternal(path);  }  /**   * This method tests two <code>File</code> objects for equality by    * comparing the path of the specified <code>File</code> against the path   * of this object.  The two objects are equal if an only if 1) The   * argument is not null 2) The argument is a <code>File</code> object and   * 3) The path of the <code>File</code>argument is equal to the path   * of this object.   * <p>   * The paths of the files are determined by calling the    * <code>getPath()</code>   * method on each object.   *   * @return <code>true</code> if the two objects are equal,    * <code>false</code> otherwise.   */  public boolean equals (Object obj)  {    if (! (obj instanceof File))      return false;        File other = (File) obj;    if (caseSensitive)      return path.equals (other.path);    else      return path.equalsIgnoreCase (other.path);  }  /*   * This native method does the actual checking of file existence.   */  private native boolean existsInternal(String path);  /**   * This method tests whether or not the file represented by the object   * actually exists on the filesystem.   *   * @return <code>true</code> if the file exists, <code>false</code>otherwise.   *   * @exception SecurityException If reading of the file is not permitted   */  public boolean exists()  {    checkRead();    return existsInternal (path);  }  /**   * This method initializes a new <code>File</code> object to represent   * a file with the specified URI.   *   * @param uri The URI of the file   * @author Ito Kazumitsu   */  public File(URI uri)  {    this.path = uri.getPath();    if (this.path == null)      {	throw new IllegalArgumentException();      }  }  /**   * This method initializes a new <code>File</code> object to represent   * a file with the specified path.   *   * @param name The path name of the file   */  public File (String name)  {    path = name;    // Per the spec    if (path == null)      throw new NullPointerException("File name is null");    while (!PlatformHelper.isRootDirectory(path)  	 && PlatformHelper.endWithSeparator(path))        path = PlatformHelper.removeTailSeparator(path);  }   /**   * This method initializes a new <code>File</code> object to represent   * a file in the specified named directory.  The path name to the file   * will be the directory name plus the separator string plus the file   * name.  If the directory path name ends in the separator string, another   * separator string will still be appended.   *   * @param dirPath The path to the directory the file resides in   * @param name The name of the file   */  public File (String dirPath, String name)  {    this (dirPath == null ? (File) null : new File (dirPath), name);  }  /**   * This method initializes a new <code>File</code> object to represent   * a file in the specified directory.  If the <code>directory</code>   * argument is <code>null</code>, the file is assumed to be in the   * current directory as specified by the <code>user.dir</code> system   * property   *   * @param directory The directory this file resides in   * @param name The name of the file   */  public File (File directory, String name)  {    if (name == null)      throw new NullPointerException("filename is null");    String dirPath;        if (directory == null)      dirPath = "";    else if (directory.getPath() == "")      dirPath = PlatformHelper.isWindows ? "\\" : "/";    else      dirPath = directory.getPath();    if (name == null)      throw new NullPointerException("filename is null");    if (PlatformHelper.isRootDirectory(dirPath) || dirPath == "")      path = dirPath + name;    else      path = dirPath + separator + name;  }  /**   * This method returns the path of this file as an absolute path name.   * If the path name is already absolute, then it is returned.  Otherwise   * the value returned is the current directory plus the separatory   * string plus the path of the file.  The current directory is determined   * from the <code>user.dir</code> system property.   *   * @return The absolute path of this file   */  public String getAbsolutePath()  {    if (isAbsolute())      return path;        String dir = System.getProperty ("user.dir");    if (dir == null)      return path;    if (PlatformHelper.endWithSeparator (dir))      return dir + path;    return dir + separator + path;  }  /**   * This method returns a <code>File</code> object representing the   * absolute path of this object.   *   * @return A <code>File</code> with the absolute path of the object.   *   * @since 1.2   */  public File getAbsoluteFile()  {    return new File (getAbsolutePath());  }  /**   * This method returns a canonical representation of the pathname of   * this file.  The actual form of the canonical representation is   * different.  On the GNU system, the canonical form differs from the   * absolute form in that all relative file references to "." and ".."   * are resolved and removed.   * <p>   * Note that this method, unlike the other methods which return path   * names, can throw an IOException.  This is because native method    * might be required in order to resolve the canonical path   *   * @exception IOException If an error occurs   */  public String getCanonicalPath() throws IOException  {    String abspath = getAbsolutePath();    return PlatformHelper.toCanonicalForm(abspath);  }  /**   * This method returns a <code>File</code> object representing the   * canonical path of this object.   *   * @return A <code>File</code> instance representing the canonical path of   * this object.   *   * @exception IOException If an error occurs.   *   * @since 1.2   */  public File getCanonicalFile() throws IOException  {    return new File (getCanonicalPath());  }  /**   * This method returns the name of the file.  This is everything in the

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费在线看成人av| 95精品视频在线| 性欧美疯狂xxxxbbbb| 久久久久久99精品| 国产三级久久久| 久久综合精品国产一区二区三区 | 99久久伊人久久99| 成人综合日日夜夜| 国产成人精品亚洲777人妖| 激情伊人五月天久久综合| 美女爽到高潮91| 国产在线精品免费| 国产精品99久久久久久宅男| 国产不卡免费视频| 99久久婷婷国产综合精品| 不卡视频在线观看| 91美女福利视频| 日本韩国一区二区三区视频| 欧美撒尿777hd撒尿| 欧美另类高清zo欧美| 日韩欧美中文一区二区| 日韩三级视频中文字幕| 26uuu成人网一区二区三区| www精品美女久久久tv| 久久精品日产第一区二区三区高清版 | 久久不见久久见免费视频1| 国产尤物一区二区| 国产成人8x视频一区二区| 91一区二区三区在线播放| 欧美影院一区二区三区| 91精品免费观看| 久久人人爽人人爽| 日韩一区在线免费观看| 亚洲国产aⅴ成人精品无吗| 蜜臀精品一区二区三区在线观看 | 99麻豆久久久国产精品免费 | 欧美日本一道本| 欧美精品一区二区在线播放| 国产亚洲欧美日韩在线一区| 成人免费一区二区三区在线观看 | 欧美性一区二区| 日韩免费看的电影| 欧美国产日产图区| 夜夜亚洲天天久久| 久久国产精品第一页| 99国产精品久久久| 欧美丰满少妇xxxxx高潮对白| 日韩欧美国产综合| 亚洲欧洲另类国产综合| 午夜电影网一区| 国产成人在线视频网站| 欧美综合亚洲图片综合区| 日韩免费性生活视频播放| 日韩毛片精品高清免费| 日本不卡高清视频| 99久久er热在这里只有精品66| 7777精品伊人久久久大香线蕉| 久久久亚洲欧洲日产国码αv| 一区二区三区四区国产精品| 精品一区二区三区免费| 日本韩国欧美国产| 久久精品在线观看| 亚洲福利视频一区二区| 成人av免费在线| 日韩欧美中文字幕公布| 一区二区三区在线视频观看58| 国产在线视频不卡二| 欧美特级限制片免费在线观看| 久久久久久久久久久久久夜| 亚洲不卡在线观看| 99久久免费国产| 久久亚洲综合av| 婷婷综合五月天| 色综合视频在线观看| 久久蜜桃香蕉精品一区二区三区| 午夜婷婷国产麻豆精品| 91香蕉国产在线观看软件| 久久久99久久| 六月丁香婷婷久久| 欧美高清一级片在线| 中文字幕亚洲电影| 成人影视亚洲图片在线| 精品99999| 午夜精品一区在线观看| 一本到高清视频免费精品| 欧美激情一区在线观看| 国产一区二区不卡老阿姨| 91精品国产色综合久久不卡电影| 亚洲男人的天堂一区二区| 成人深夜在线观看| 2024国产精品视频| 精品亚洲国产成人av制服丝袜| 欧美精选一区二区| 亚洲线精品一区二区三区八戒| 91在线丨porny丨国产| 国产欧美一区二区精品性| 精品无人码麻豆乱码1区2区| 91麻豆精品91久久久久同性| 亚洲不卡一区二区三区| 欧美在线色视频| 亚洲一区二区偷拍精品| 日本高清不卡aⅴ免费网站| 亚洲人成在线播放网站岛国| 99久久国产综合精品麻豆| 一区视频在线播放| 99v久久综合狠狠综合久久| 国产精品久久久久桃色tv| 成人精品高清在线| 国产精品黄色在线观看| 成人av高清在线| 最近日韩中文字幕| 91丨九色丨黑人外教| 亚洲欧美另类图片小说| 欧美午夜精品一区二区蜜桃| 性做久久久久久免费观看| 91精品黄色片免费大全| 蜜桃久久久久久久| 2021中文字幕一区亚洲| 国产传媒久久文化传媒| 国产精品午夜在线观看| 色综合久久天天| 伊人色综合久久天天| 欧美日韩亚州综合| 麻豆久久久久久久| 国产香蕉久久精品综合网| 成人免费av资源| 亚洲精品亚洲人成人网| 欧美精品三级在线观看| 美女mm1313爽爽久久久蜜臀| 久久久av毛片精品| 高清不卡在线观看| 亚洲激情校园春色| 欧美老女人第四色| 国产精一区二区三区| 亚洲人成亚洲人成在线观看图片| 欧美亚洲尤物久久| 老司机精品视频在线| 国产亚洲精品免费| 欧美亚洲图片小说| 激情五月激情综合网| 最新高清无码专区| 欧美一级午夜免费电影| 国产精品一卡二卡| 一区二区三区毛片| 26uuu另类欧美亚洲曰本| 91丝袜美腿高跟国产极品老师| 免费在线一区观看| 亚洲欧洲制服丝袜| 久久综合久久综合久久综合| 色综合婷婷久久| 国产成人午夜电影网| 一区在线观看免费| 日韩欧美一二区| 成人小视频免费在线观看| 亚洲精品v日韩精品| 91精品一区二区三区在线观看| 国产精品一区二区不卡| 亚洲日本丝袜连裤袜办公室| 欧美精品第1页| 日本伊人午夜精品| 中文字幕一区二区三区不卡| 日本高清不卡一区| 麻豆国产欧美日韩综合精品二区 | 欧美精品粉嫩高潮一区二区| 日本不卡123| 亚洲欧美日韩久久| 日韩欧美的一区| www.欧美精品一二区| 免费在线观看一区| 1区2区3区欧美| 日韩精品一区二区三区视频播放| 成人性生交大片免费看中文| 奇米色777欧美一区二区| 国产精品剧情在线亚洲| 91精品国产免费| 国产高清在线精品| 男女男精品网站| 亚洲精品日产精品乱码不卡| 日韩一区二区免费在线电影 | 欧美日韩国产一级二级| 成人av先锋影音| 美脚の诱脚舐め脚责91| 一区二区三区免费观看| 日韩欧美亚洲国产另类 | 欧美一区二区视频观看视频| 91搞黄在线观看| 国产成都精品91一区二区三| 香蕉成人伊视频在线观看| 亚洲自拍偷拍综合| 国产农村妇女毛片精品久久麻豆 | 7777精品久久久大香线蕉| 日本高清不卡一区| 成人黄色av电影| 久久se这里有精品| 麻豆freexxxx性91精品| 亚洲国产中文字幕在线视频综合| 欧美激情综合五月色丁香| 91麻豆精品91久久久久久清纯 | 日韩天堂在线观看| 91久久一区二区|