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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? file.java

?? linux下編程用 編譯軟件
?? JAVA
?? 第 1 頁 / 共 3 頁
字號(hào):
/* File.java -- Class representing a file on disk   Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006   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., 51 Franklin Street, Fifth Floor, Boston, MA02110-1301 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.URI;import java.net.URISyntaxException;import java.net.URL;import gnu.classpath.Configuration;/* 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;	  // QUERY arguments to access function.  private final static int READ = 0;  private final static int WRITE = 1;  private final static int EXISTS = 2;  // QUERY arguments to stat function.  private final static int DIRECTORY = 0;  private final static int ISFILE = 1;  private final static int ISHIDDEN = 2;  // QUERY arguments to attr function.  private final static int MODIFIED = 0;  private final static int LENGTH = 1;    private final native long attr (int query);  // On OSF1 V5.0, `stat' is a macro.  It is easiest to use the name  // `_stat' instead.  We do the same thing for `_access' just in  // case.  private final native boolean _access (int query);  private final native boolean _stat (int query);  /**   * 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");  private static final String dupSeparator = separator + 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);  static final String tmpdir = System.getProperty("java.io.tmpdir");  static int maxPathLen;  static boolean caseSensitive;    static  {    if (Configuration.INIT_LOAD_LIBRARY)      {        System.loadLibrary("javaio");      }        init_native();  }    // Native function called at class initialization. This should should  // set the maxPathLen and caseSensitive variables.  private static native void init_native();  /**   * 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;  // We keep a counter for use by createTempFile.  We choose the first  // value randomly to try to avoid clashes with other VMs.  private static long counter = Double.doubleToLongBits (Math.random());  /**   * 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()  {    checkRead();    return _access (READ);  }  /**   * 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()  {    checkWrite();    return _access (WRITE);  }    private native boolean performCreate() throws IOException;  /**   * 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.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 performCreate();  }   /*   * This native method handles the actual deleting of the file   */  private native boolean performDelete();  /**   * 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 performDelete();  }  /**   * 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 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 _access (EXISTS);  }  /**   * 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 = normalizePath (name);  }  // Remove duplicate and redundant separator characters.  private String normalizePath(String p)  {    // On Windows, convert any '/' to '\'.  This appears to be the same logic    // that Sun's Win32 Java performs.    if (separatorChar == '\\')      {        p = p.replace ('/', '\\');	// We have to special case the "\c:" prefix.	if (p.length() > 2 && p.charAt(0) == '\\' &&	    ((p.charAt(1) >= 'a' && p.charAt(1) <= 'z') ||	    (p.charAt(1) >= 'A' && p.charAt(1) <= 'Z')) &&	    p.charAt(2) == ':')	  p = p.substring(1);      }    int dupIndex = p.indexOf(dupSeparator);    int plen = p.length();    // Special case: permit Windows UNC path prefix.    if (dupSeparator.equals("\\\\") && dupIndex == 0)      dupIndex = p.indexOf(dupSeparator, 1);    if (dupIndex == -1)      {        // Ignore trailing separator (though on Windows "a:\", for        // example, is a valid and minimal path).        if (plen > 1 && p.charAt (plen - 1) == separatorChar)	  {	    if (! (separatorChar == '\\' && plen == 3 && p.charAt (1) == ':'))	      return p.substring (0, plen - 1);	  }	else	  return p;      }        StringBuffer newpath = new StringBuffer(plen);    int last = 0;    while (dupIndex != -1)      {        newpath.append(p.substring(last, dupIndex));	// Ignore the duplicate path characters.	while (p.charAt(dupIndex) == separatorChar)	  {	    dupIndex++;	    if (dupIndex == plen)	      return newpath.toString();	  }	newpath.append(separatorChar);	last = dupIndex;	dupIndex = p.indexOf(dupSeparator, last);      }        // Again, ignore possible trailing separator (except special cases    // like "a:\" on Windows).    int end;    if (plen > 1 && p.charAt (plen - 1) == separatorChar)    {      if (separatorChar == '\\' && plen == 3 && p.charAt (1) == ':')        end = plen;      else        end = plen - 1;    }    else      end = plen;    newpath.append(p.substring(last, end));        return newpath.toString();  }   /**   * 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)  {    if (name == null)      throw new NullPointerException();    if (dirPath != null)      {	if (dirPath.length() > 0)	  {	    // Try to be smart about the number of separator characters.	    if (dirPath.charAt(dirPath.length() - 1) == separatorChar		|| name.length() == 0)	      path = normalizePath(dirPath + name);	    else	      path = normalizePath(dirPath + separatorChar + name);	  }	else	  {	    // If dirPath is empty, use a system dependant	    // default prefix.	    // Note that the leading separators in name have	    // to be chopped off, to prevent them forming	    // a UNC prefix on Windows.	    if (separatorChar == '\\' /* TODO use ON_WINDOWS */)	      {		int skip = 0;		while(name.length() > skip		    && (name.charAt(skip) == separatorChar		    || name.charAt(skip) == '/'))		  {		    skip++;		  }		name = name.substring(skip);	      }	    path = normalizePath(separatorChar + name);	  }      }    else      path = normalizePath(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)  {    this (directory == null ? null : directory.path, name);  }  /**   * This method initializes a new <code>File</code> object to represent   * a file corresponding to the specified <code>file:</code> protocol URI.   *   * @param uri The uri.   */  public File(URI uri)  {    if (uri == null)	throw new NullPointerException("uri is null");    if (!uri.getScheme().equals("file"))	throw new IllegalArgumentException("invalid uri protocol");    String name = uri.getPath();    if (name == null)      throw new IllegalArgumentException("URI \"" + uri                     + "\" is not hierarchical");    path = normalizePath(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;    else if (separatorChar == '\\'              && path.length() > 0 && path.charAt (0) == '\\')      {        // On Windows, even if the path starts with a '\\' it is not        // really absolute until we prefix the drive specifier from        // the current working directory to it.        return System.getProperty ("user.dir").substring (0, 2) + path;      }    else if (separatorChar == '\\'              && path.length() > 1 && path.charAt (1) == ':'             && ((path.charAt (0) >= 'a' && path.charAt (0) <= 'z')                 || (path.charAt (0) >= 'A' && path.charAt (0) <= 'Z')))

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品色哟哟| 日韩精品一区二区三区中文不卡 | 成人毛片视频在线观看| 六月丁香婷婷色狠狠久久| 日本va欧美va精品| 麻豆精品在线看| 国产乱一区二区| 99久久精品免费看国产免费软件| 91在线免费看| 欧美精品久久久久久久久老牛影院| 欧美日韩大陆一区二区| 日韩欧美不卡在线观看视频| 亚洲精品一区在线观看| 中文字幕成人av| 性久久久久久久久久久久| 久久精品免费看| 成人毛片视频在线观看| 欧美性大战xxxxx久久久| 日韩欧美一级片| 成人免费在线观看入口| 亚洲国产欧美日韩另类综合| 青青草成人在线观看| 国产精品夜夜爽| 欧美午夜精品久久久久久孕妇| 欧美另类高清zo欧美| 精品99久久久久久| 一区二区在线观看不卡| 日本亚洲天堂网| 99久久777色| 日韩一二在线观看| 国产精品第一页第二页第三页| 亚洲一区二区黄色| 经典三级一区二区| 欧美少妇bbb| 国产精品免费久久久久| 日韩av在线免费观看不卡| 高清不卡一二三区| 欧美精品aⅴ在线视频| 中文字幕乱码亚洲精品一区| 日本视频免费一区| 色综合久久天天| 国产亚洲欧美日韩俺去了| 亚洲成人av福利| 不卡的电视剧免费网站有什么| 欧美日韩黄视频| 亚洲免费av高清| 国产精品白丝jk黑袜喷水| 欧美日韩mp4| 亚洲男人的天堂av| 国产黄人亚洲片| 日韩精品一区二区在线观看| 夜夜嗨av一区二区三区中文字幕| 国产精品99久久久久久有的能看| 欧美日本在线播放| 1000精品久久久久久久久| 韩国在线一区二区| 在线不卡免费欧美| 午夜视频一区二区三区| 91免费在线看| 亚洲啪啪综合av一区二区三区| 国产传媒日韩欧美成人| 欧美电影免费观看高清完整版在线观看| 亚洲午夜影视影院在线观看| 99视频国产精品| 国产精品毛片高清在线完整版| 精品一区二区三区免费观看 | 欧美不卡123| 日韩精品欧美精品| 欧美视频一二三区| 亚洲高清久久久| 欧美日韩国产一级| 亚洲成人资源在线| 韩国午夜理伦三级不卡影院| 波多野结衣一区二区三区 | 欧美日韩国产首页| 亚洲成人黄色影院| 欧美日韩国产经典色站一区二区三区| 一区二区在线免费| 色婷婷av久久久久久久| 一区二区三区鲁丝不卡| 色综合久久中文字幕| 一区二区三区中文字幕电影| 在线观看成人免费视频| 亚洲一区二区免费视频| 538prom精品视频线放| 青草av.久久免费一区| 精品久久久久av影院 | 97久久久精品综合88久久| 国产精品久久久久久久久免费相片| 在线观看一区不卡| 久久精品国产**网站演员| 91精品国产综合久久国产大片| 香蕉加勒比综合久久| 在线播放亚洲一区| 精品一区二区av| 国产午夜亚洲精品理论片色戒 | 国产亚洲一二三区| 成人综合婷婷国产精品久久| 亚洲激情欧美激情| 91精品国产欧美一区二区成人| 奇米精品一区二区三区四区 | 亚洲一区二区三区在线| 欧美日韩国产另类不卡| 精品在线免费观看| 精品人伦一区二区色婷婷| 日韩欧美国产高清| 久久99国产精品麻豆| 国产精品天干天干在线综合| 欧美午夜一区二区三区| 蜜臀va亚洲va欧美va天堂| 国产拍欧美日韩视频二区| 欧美色爱综合网| 丁香婷婷综合网| 天天综合色天天综合| 国产午夜精品一区二区| 欧美日韩一级视频| 成人99免费视频| 老司机午夜精品| 亚洲欧美视频一区| 精品福利av导航| 欧美一区二区三区在线看| 欧美日韩国产区一| 丁香婷婷综合激情五月色| 毛片一区二区三区| 国产精品久久久久影院老司| 91精品国产91久久久久久最新毛片| 国产高清成人在线| 日本成人在线一区| 夜夜嗨av一区二区三区中文字幕| 国产日韩欧美a| 欧美mv和日韩mv的网站| 欧美日产在线观看| 色久优优欧美色久优优| 成人福利电影精品一区二区在线观看 | 麻豆精品在线视频| 亚洲午夜国产一区99re久久| 国产精品久久久久久久久搜平片 | 国产传媒久久文化传媒| 天天综合天天做天天综合| 一区二区三区欧美在线观看| 国产精品久久久久久久久晋中| 美女性感视频久久| 亚洲丝袜自拍清纯另类| 久久青草国产手机看片福利盒子| 欧美日韩国产一二三| 91精品91久久久中77777| 91玉足脚交白嫩脚丫在线播放| 风间由美中文字幕在线看视频国产欧美| 日韩专区中文字幕一区二区| 精品一区二区三区不卡| 日日骚欧美日韩| 日本成人在线看| 五月天丁香久久| 免费人成黄页网站在线一区二区| 亚洲午夜在线视频| 五月天亚洲婷婷| 日本欧美肥老太交大片| 七七婷婷婷婷精品国产| 久久精品国产成人一区二区三区| 另类人妖一区二区av| 激情久久五月天| 韩国v欧美v日本v亚洲v| 国产成人在线免费观看| 成人综合在线观看| 色综合天天综合给合国产| 一区二区三区四区乱视频| 精品粉嫩超白一线天av| 国产日韩精品久久久| 国产精品初高中害羞小美女文| 中文字幕一区二区三区在线观看| 国产香蕉久久精品综合网| 国产精品人妖ts系列视频| 亚洲女同女同女同女同女同69| 亚洲一区二区在线观看视频| 日韩在线a电影| 国产福利电影一区二区三区| 色爱区综合激月婷婷| 国产精品无人区| 亚洲gay无套男同| 国产一区视频在线看| 色悠悠久久综合| 日韩欧美在线不卡| 国产精品天干天干在观线| 亚洲国产精品久久不卡毛片 | 色噜噜狠狠色综合欧洲selulu| 欧美日韩国产首页在线观看| 久久久久久一级片| 亚洲一区二区视频在线观看| 日韩精品专区在线影院观看| 欧美精品一区二区三区在线播放| 中文字幕av资源一区| 亚洲第一电影网| av午夜精品一区二区三区| 4438x成人网最大色成网站| 欧美精彩视频一区二区三区| 香蕉加勒比综合久久| 成人国产精品免费观看视频| 欧美成人女星排名| 亚洲成av人片一区二区梦乃| 99久久99久久综合|