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

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

?? file.java

?? linux下編程用 編譯軟件
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
      {        // On Windows, a process has a current working directory for        // each drive and a path like "G:foo\bar" would mean the         // absolute path "G:\wombat\foo\bar" if "\wombat" is the         // working directory on the G drive.        String drvDir = null;        try          {            drvDir = new File (path.substring (0, 2)).getCanonicalPath();          }        catch (IOException e)          {            drvDir = path.substring (0, 2) + "\\";          }                // Note: this would return "C:\\." for the path "C:.", if "\"        // is the working folder on the C drive, but this is         // consistent with what Sun's JRE 1.4.1.01 actually returns!        if (path.length() > 2)          return drvDir + '\\' + path.substring (2, path.length());        else          return drvDir;      }    else      return System.getProperty ("user.dir") + separatorChar + 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 native String getCanonicalPath() throws IOException;  /**   * 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   * complete path of the file after the last instance of the separator   * string.   *   * @return The file name   */  public String getName()  {    int nameSeqIndex = 0;    if (separatorChar == '\\' && path.length() > 1)      {        // On Windows, ignore the drive specifier or the leading '\\'        // of a UNC network path, if any (a.k.a. the "prefix").        if ((path.charAt (0) == '\\' && path.charAt (1) == '\\')            || (((path.charAt (0) >= 'a' && path.charAt (0) <= 'z')		 || (path.charAt (0) >= 'A' && path.charAt (0) <= 'Z'))		&& path.charAt (1) == ':'))	  {	    if (path.length() > 2)	      nameSeqIndex = 2;	    else	      return "";	  }      }    String nameSeq       = (nameSeqIndex > 0 ? path.substring (nameSeqIndex) : path);    int last = nameSeq.lastIndexOf (separatorChar);    return nameSeq.substring (last + 1);  }  /**   * This method returns a <code>String</code> the represents this file's   * parent.  <code>null</code> is returned if the file has no parent.  The   * parent is determined via a simple operation which removes the   *   * @return The parent directory of this file   */  public String getParent()  {    String prefix = null;    int nameSeqIndex = 0;    // The "prefix", if present, is the leading "/" on UNIX and     // either the drive specifier (e.g. "C:") or the leading "\\"    // of a UNC network path on Windows.    if (separatorChar == '/' && path.charAt (0) == '/')      {        prefix = "/";        nameSeqIndex = 1;      }    else if (separatorChar == '\\' && path.length() > 1)      {        if ((path.charAt (0) == '\\' && path.charAt (1) == '\\')            || (((path.charAt (0) >= 'a' && path.charAt (0) <= 'z')                 || (path.charAt (0) >= 'A' && path.charAt (0) <= 'Z'))                && path.charAt (1) == ':'))          {            prefix = path.substring (0, 2);            nameSeqIndex = 2;          }      }    // According to the JDK docs, the returned parent path is the     // portion of the name sequence before the last separator    // character, if found, prefixed by the prefix, otherwise null.    if (nameSeqIndex < path.length())      {        String nameSeq = path.substring (nameSeqIndex, path.length());        int last = nameSeq.lastIndexOf (separatorChar);        if (last == -1)          return prefix;        else if (last == (nameSeq.length() - 1))          // Note: The path would not have a trailing separator          // except for cases like "C:\" on Windows (see           // normalizePath( )), where Sun's JRE 1.4 returns null.          return null;        else if (last == 0)          last++;        if (prefix != null)          return prefix + nameSeq.substring (0, last);        else          return nameSeq.substring (0, last);      }    else      // Sun's JRE 1.4 returns null if the prefix is the only       // component of the path - so "/" gives null on UNIX and       // "C:", "\\", etc. return null on Windows.      return null;  }  /**   * This method returns a <code>File</code> object representing the parent   * file of this one.   *   * @return a <code>File</code> for the parent of this object.     * <code>null</code>   * will be returned if this object does not have a parent.   *   * @since 1.2   */  public File getParentFile()  {    String parent = getParent();    return parent != null ? new File(parent) : null;  }  /**   * Returns the path name that represents this file.  May be a relative   * or an absolute path name   *   * @return The pathname of this file   */  public String getPath()  {    return path;  }  /**   * This method returns a hash code representing this file.  It is the   * hash code of the path of this file (as returned by <code>getPath()</code>)   * exclusived or-ed with the value 1234321.   *   * @return The hash code for this object   */  public int hashCode()  {    if (caseSensitive)      return path.hashCode() ^ 1234321;    else      return path.toLowerCase().hashCode() ^ 1234321;  }  /**   * This method returns true if this object represents an absolute file   * path and false if it does not.  The definition of an absolute path varies   * by system.  As an example, on GNU systems, a path is absolute if it starts   * with a "/".   *   * @return <code>true</code> if this object represents an absolute    * file name, <code>false</code> otherwise.   */  public native boolean isAbsolute();  /**   * This method tests whether or not the file represented by this object   * is a directory.  In order for this method to return <code>true</code>,   * the file represented by this object must exist and be a directory.   *    * @return <code>true</code> if this file is a directory, <code>false</code>   * otherwise   *   * @exception SecurityException If reading of the file is not permitted   */  public boolean isDirectory()  {    checkRead();    return _stat (DIRECTORY);  }  /**   * This method tests whether or not the file represented by this object   * is a "plain" file.  A file is a plain file if and only if it 1) Exists,   * 2) Is not a directory or other type of special file.   *   * @return <code>true</code> if this is a plain file, <code>false</code>    * otherwise   *   * @exception SecurityException If reading of the file is not permitted   */  public boolean isFile()  {    checkRead();    return _stat (ISFILE);  }  /**   * This method tests whether or not this file represents a "hidden" file.   * On GNU systems, a file is hidden if its name begins with a "."   * character.  Files with these names are traditionally not shown with   * directory listing tools.   *   * @return <code>true</code> if the file is hidden, <code>false</code>   * otherwise.   *   * @since 1.2   */  public boolean isHidden()  {    checkRead();    return _stat (ISHIDDEN);  }  /**   * This method returns the last modification time of this file.  The   * time value returned is an abstract value that should not be interpreted   * as a specified time value.  It is only useful for comparing to other   * such time values returned on the same system.  In that case, the larger   * value indicates a more recent modification time.    * <p>   * If the file does not exist, then a value of 0 is returned.   *   * @return The last modification time of the file   *   * @exception SecurityException If reading of the file is not permitted   */  public long lastModified()  {    checkRead();    return attr (MODIFIED);  }  /**   * This method returns the length of the file represented by this object,   * or 0 if the specified file does not exist.   *   * @return The length of the file   *   * @exception SecurityException If reading of the file is not permitted   */  public long length()  {    checkRead();    return attr (LENGTH);  }  /*   * This native function actually produces the list of file in this   * directory   */  private final native Object[] performList (FilenameFilter filter,					     FileFilter fileFilter,					     Class result_type);  /**   * This method returns a array of <code>String</code>'s representing the   * list of files is then directory represented by this object.  If this   * object represents a non-directory file or a non-existent file, then   * <code>null</code> is returned.  The list of files will not contain   * any names such as "." or ".." which indicate the current or parent   * directory.  Also, the names are not guaranteed to be sorted.   * <p>   * In this form of the <code>list()</code> method, a filter is specified   * that allows the caller to control which files are returned in the   * list.  The <code>FilenameFilter</code> specified is called for each   * file returned to determine whether or not that file should be included   * in the list.   * <p>   * A <code>SecurityManager</code> check is made prior to reading the   * directory.  If read access to the directory is denied, an exception   * will be thrown.   *   * @param filter An object which will identify files to exclude from    * the directory listing.   *   * @return An array of files in the directory, or <code>null</code>    * if this object does not represent a valid directory.   *    * @exception SecurityException If read access is not allowed to the    * directory by the <code>SecurityManager</code>   */  public String[] list(FilenameFilter filter)  {    checkRead();    return (String[]) performList (filter, null, String.class);  }  /**   * This method returns a array of <code>String</code>'s representing the   * list of files is then directory represented by this object.  If this   * object represents a non-directory file or a non-existent file, then   * <code>null</code> is returned.  The list of files will not contain   * any names such as "." or ".." which indicate the current or parent   * directory.  Also, the names are not guaranteed to be sorted.   * <p>   * A <code>SecurityManager</code> check is made prior to reading the   * directory.  If read access to the directory is denied, an exception   * will be thrown.   *   * @return An array of files in the directory, or <code>null</code> if    * this object does not represent a valid directory.   *    * @exception SecurityException If read access is not allowed to the    * directory by the <code>SecurityManager</code>   */  public String[] list()  {    checkRead();    return (String[]) performList (null, null, String.class);  }  /**   * This method returns an array of <code>File</code> objects representing   * all the files in the directory represented by this object. If this   * object does not represent a directory, <code>null</code> is returned.   * Each of the returned <code>File</code> object is constructed with this   * object as its parent.   * <p>   * A <code>SecurityManager</code> check is made prior to reading the   * directory.  If read access to the directory is denied, an exception   * will be thrown.   *   * @return An array of <code>File</code> objects for this directory.   *   * @exception SecurityException If the <code>SecurityManager</code> denies   * access to this directory.   *   * @since 1.2   */  public File[] listFiles()  {    checkRead();    return (File[]) performList (null, null, File.class);  }    /**   * This method returns an array of <code>File</code> objects representing   * all the files in the directory represented by this object. If this   * object does not represent a directory, <code>null</code> is returned.   * Each of the returned <code>File</code> object is constructed with this   * object as its parent.   * <p>    * In this form of the <code>listFiles()</code> method, a filter is specified   * that allows the caller to control which files are returned in the   * list.  The <code>FilenameFilter</code> specified is called for each   * file returned to determine whether or not that file should be included   * in the list.   * <p>   * A <code>SecurityManager</code> check is made prior to reading the   * directory.  If read access to the directory is denied, an exception   * will be thrown.   *   * @return An array of <code>File</code> objects for this directory.   *   * @exception SecurityException If the <code>SecurityManager</code> denies   * access to this directory.   *   * @since 1.2   */  public File[] listFiles(FilenameFilter filter)  {    checkRead();    return (File[]) performList (filter, null, File.class);  }  /**   * This method returns an array of <code>File</code> objects representing   * all the files in the directory represented by this object. If this   * object does not represent a directory, <code>null</code> is returned.   * Each of the returned <code>File</code> object is constructed with this   * object as its parent.   * <p>    * In this form of the <code>listFiles()</code> method, a filter is specified   * that allows the caller to control which files are returned in the   * list.  The <code>FileFilter</code> specified is called for each   * file returned to determine whether or not that file should be included   * in the list.   * <p>   * A <code>SecurityManager</code> check is made prior to reading the   * directory.  If read access to the directory is denied, an exception   * will be thrown.   *   * @return An array of <code>File</code> objects for this directory.   *   * @exception SecurityException If the <code>SecurityManager</code> denies   * access to this directory.   *   * @since 1.2   */  public File[] listFiles(FileFilter filter)  {    checkRead();    return (File[]) performList (null, filter, File.class);  }  /**   * This method returns a <code>String</code> that is the path name of the   * file as returned by <code>getPath</code>.   *   * @return A <code>String</code> representation of this file   */  public String toString()  {    return path;  }  /**   * @return A <code>URI</code> for this object.   */  public URI toURI()  {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品理论片| 91黄色免费观看| 成人免费视频网站在线观看| av中文字幕不卡| 欧美刺激午夜性久久久久久久| 欧美精品一区二区三| 亚洲一区二区三区视频在线播放| 久久国产精品72免费观看| 日本高清无吗v一区| 久久久91精品国产一区二区精品 | 精品国产网站在线观看| 亚洲女同一区二区| 国内外成人在线视频| 欧美三级一区二区| **欧美大码日韩| 国产精品原创巨作av| 日韩女优av电影在线观看| 一区二区激情小说| av亚洲精华国产精华| 久久影院视频免费| 精品伊人久久久久7777人| 欧美卡1卡2卡| 亚瑟在线精品视频| 91国偷自产一区二区开放时间 | 不卡欧美aaaaa| 欧美成人乱码一区二区三区| 午夜国产不卡在线观看视频| 欧美色男人天堂| 午夜精品在线看| 欧美日韩综合色| 午夜精品视频在线观看| 欧美色窝79yyyycom| 亚洲在线免费播放| 欧美色网站导航| 亚洲一区二区欧美| 欧美精品 日韩| 午夜电影一区二区三区| 欧美妇女性影城| 日本aⅴ免费视频一区二区三区| 欧美日本国产视频| 婷婷六月综合亚洲| 日韩视频在线永久播放| 久久不见久久见中文字幕免费| 精品日韩一区二区三区免费视频| 久久精品av麻豆的观看方式| 精品国产伦一区二区三区观看体验| 美腿丝袜亚洲色图| 久久久天堂av| kk眼镜猥琐国模调教系列一区二区| 国产精品美女久久久久av爽李琼| 97精品国产露脸对白| 亚洲综合色成人| 9191久久久久久久久久久| 日本大胆欧美人术艺术动态| 日韩欧美一级二级三级| 国产老肥熟一区二区三区| 国产精品久久久久天堂| 色欧美日韩亚洲| 亚洲国产精品一区二区www在线| 7777精品伊人久久久大香线蕉经典版下载 | 成人av高清在线| 亚洲精品午夜久久久| 欧美一区二区三区色| 国产福利精品导航| 怡红院av一区二区三区| 日韩亚洲欧美在线观看| 国产69精品一区二区亚洲孕妇| 亚洲欧美另类综合偷拍| 91精品国产高清一区二区三区蜜臀| 国产酒店精品激情| 悠悠色在线精品| 久久婷婷色综合| 在线观看欧美黄色| 国内精品久久久久影院薰衣草| 日韩理论片网站| 日韩一区二区不卡| 91在线观看免费视频| 蜜臀av一区二区在线免费观看 | 中文乱码免费一区二区| 欧美日韩免费在线视频| 高清国产一区二区| 日韩成人精品在线| 亚洲欧洲日产国码二区| 欧美电影免费观看完整版| 欧美怡红院视频| 岛国精品在线观看| 奇米影视在线99精品| 亚洲最新视频在线观看| 国产欧美日韩精品a在线观看| 欧美日韩电影一区| 91亚洲精品乱码久久久久久蜜桃 | 国产亚洲一区字幕| 在线成人免费视频| 日本高清不卡aⅴ免费网站| 国产福利精品导航| 黄页网站大全一区二区| 亚洲1区2区3区4区| 亚洲黄色免费电影| 亚洲欧美综合另类在线卡通| 2019国产精品| 欧美成人性战久久| 91精品国产综合久久小美女| 欧美日韩综合不卡| 欧美中文字幕一区| 日本韩国视频一区二区| 99精品视频中文字幕| 国产成人av电影在线观看| 奇米精品一区二区三区在线观看一 | 一区二区在线观看不卡| 欧美理论电影在线| 国产99久久久国产精品免费看 | 高潮精品一区videoshd| 免费成人av在线播放| 日韩在线卡一卡二| 天堂影院一区二区| 五月婷婷欧美视频| 免费日本视频一区| 免费成人av资源网| 精品一区二区三区日韩| 久久99国产乱子伦精品免费| 免费精品视频在线| 国产精品成人在线观看| 久久欧美一区二区| 国产午夜精品理论片a级大结局| 久久久影视传媒| 欧美激情中文字幕一区二区| 欧美极品美女视频| 欧美高清在线一区二区| 国产精品乱码人人做人人爱 | 国产欧美日韩在线| 国产日本亚洲高清| 亚洲欧洲无码一区二区三区| 亚洲视频在线一区| 亚洲国产一区视频| 日韩va欧美va亚洲va久久| 麻豆精品视频在线观看视频| 国产一区二区三区在线观看精品 | 国产成人综合网站| 成人精品高清在线| 91黄视频在线观看| 日韩色在线观看| 久久久蜜臀国产一区二区| 国产精品久久久久久久久动漫| 日韩一级片网站| 日本欧美一区二区在线观看| 美国一区二区三区在线播放| 激情五月婷婷综合| jlzzjlzz国产精品久久| 精品视频在线免费| 精品1区2区在线观看| 成人欧美一区二区三区黑人麻豆| 亚洲综合激情另类小说区| 久久精品国产99国产精品| 91在线视频观看| 日韩午夜精品电影| 中文字幕一区二区三| 麻豆国产一区二区| 99久久免费精品| 日韩精品一区二区三区四区视频| 国产精品全国免费观看高清| 亚洲成人福利片| 成人免费高清在线| 制服丝袜亚洲网站| 国产精品久线在线观看| 青青草精品视频| 欧美午夜片在线看| 中文字幕高清不卡| 麻豆精品一区二区三区| 91久久香蕉国产日韩欧美9色| 日韩亚洲欧美综合| 一区二区三区蜜桃| 成人国产亚洲欧美成人综合网| 欧美一区二区三区视频免费| 亚洲精品乱码久久久久久久久 | av电影天堂一区二区在线| 欧美一级视频精品观看| 一区二区三区四区不卡视频| 国产成人免费9x9x人网站视频| 91精品在线免费观看| 一个色妞综合视频在线观看| 99久久夜色精品国产网站| 久久九九全国免费| 九一久久久久久| 91精品免费观看| 亚洲一区视频在线观看视频| 99久久国产综合色|国产精品| 久久九九久久九九| 国产真实乱子伦精品视频| 欧美精品久久99久久在免费线| 一区二区三区视频在线看| 972aa.com艺术欧美| 欧美国产丝袜视频| 久久99久久久久| 精品盗摄一区二区三区| 免费观看日韩电影| 欧美一区二区三区不卡| 麻豆国产精品官网| 欧美videofree性高清杂交| 日本伊人午夜精品| 日韩欧美区一区二|