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

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

?? file.java

?? linux下編程用 編譯軟件
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
    String abspath = getAbsolutePath();    if (isDirectory())      abspath = abspath + separator;            try      {	return new URI("file", abspath.replace(separatorChar, '/'), null);      }    catch (URISyntaxException use)      {        // Can't happen.	throw new RuntimeException(use);      }  }  /**   * This method returns a <code>URL</code> with the <code>file:</code>   * protocol that represents this file.  The exact form of this URL is   * system dependent.   *   * @return A <code>URL</code> for this object.   *   * @exception MalformedURLException If the URL cannot be created    * successfully.   */  public URL toURL() throws MalformedURLException  {    // On Win32, Sun's JDK returns URLs of the form "file:/c:/foo/bar.txt",    // while on UNIX, it returns URLs of the form "file:/foo/bar.txt".     if (separatorChar == '\\')      return new URL ("file:/" + getAbsolutePath().replace ('\\', '/')		      + (isDirectory() ? "/" : ""));    else      return new URL ("file:" + getAbsolutePath()		      + (isDirectory() ? "/" : ""));  }  /*   * This native method actually creates the directory   */  private final native boolean performMkdir();  /**   * This method creates a directory for the path represented by this object.   *   * @return <code>true</code> if the directory was created,    * <code>false</code> otherwise   *   * @exception SecurityException If write access is not allowed to this file   */  public boolean mkdir()  {    checkWrite();    return performMkdir();  }  private static boolean mkdirs (File x)  {    if (x.isDirectory())      return true;    String p = x.getPath();    String parent = x.getParent();    if (parent != null)      {	x.path = parent;	if (! mkdirs (x))	  return false;	x.path = p;      }    return x.mkdir();  }  /**   * This method creates a directory for the path represented by this file.   * It will also create any intervening parent directories if necessary.   *   * @return <code>true</code> if the directory was created,    * <code>false</code> otherwise   *   * @exception SecurityException If write access is not allowed to this file   */  public boolean mkdirs()  {    checkWrite();    if (isDirectory())      return false;    return mkdirs (new File (path));  }  private static synchronized String nextValue()  {    return Long.toString(counter++, Character.MAX_RADIX);  }  /**   * This method creates a temporary file in the specified directory.  If    * the directory name is null, then this method uses the system temporary    * directory. The files created are guaranteed not to currently exist and    * the same file name will never be used twice in the same virtual    * machine instance.     * The system temporary directory is determined by examinging the    * <code>java.io.tmpdir</code> system property.   * <p>   * The <code>prefix</code> parameter is a sequence of at least three   * characters that are used as the start of the generated filename.  The   * <code>suffix</code> parameter is a sequence of characters that is used   * to terminate the file name.  This parameter may be <code>null</code>   * and if it is, the suffix defaults to ".tmp".   * <p>   * If a <code>SecurityManager</code> exists, then its <code>checkWrite</code>   * method is used to verify that this operation is permitted.   *   * @param prefix The character prefix to use in generating the path name.   * @param suffix The character suffix to use in generating the path name.   * @param directory The directory to create the file in, or    * <code>null</code> for the default temporary directory   *   * @exception IllegalArgumentException If the patterns is not valid   * @exception SecurityException If there is no permission to perform    * this operation   * @exception IOException If an error occurs   *   * @since 1.2   */  public static File createTempFile(String prefix, String suffix,				    File directory)    throws IOException  {    // Grab the system temp directory if necessary    if (directory == null)      {        String dirname = tmpdir;        if (dirname == null)          throw new IOException("Cannot determine system temporary directory"); 	        directory = new File(dirname);        if (!directory.exists())          throw new IOException("System temporary directory "                                + directory.getName() + " does not exist.");        if (!directory.isDirectory())          throw new IOException("System temporary directory "                                + directory.getName()                                + " is not really a directory.");      }    // Check if prefix is at least 3 characters long    if (prefix.length() < 3)      throw new IllegalArgumentException("Prefix too short: " + prefix);    // Set default value of suffix    if (suffix == null)      suffix = ".tmp";    // Truncation rules.    // `6' is the number of characters we generate.    if (prefix.length() + 6 + suffix.length() > maxPathLen)      {	int suf_len = 0;	if (suffix.charAt(0) == '.')	  suf_len = 4;	suffix = suffix.substring(0, suf_len);	if (prefix.length() + 6 + suf_len > maxPathLen)	  prefix = prefix.substring(0, maxPathLen - 6 - suf_len);      }    File f;    // How many times should we try?  We choose 100.    for (int i = 0; i < 100; ++i)      {	// This is ugly.	String t = "ZZZZZZ" + nextValue();	String l = prefix + t.substring(t.length() - 6) + suffix;	try	  {	    f = new File(directory, l);	    if (f.createNewFile())	      return f;	  }	catch (IOException ignored)	  {	  }      }    throw new IOException ("cannot create temporary file");  }  /*   * This native method sets the permissions to make the file read only.   */  private native boolean performSetReadOnly();  /**   * This method sets the file represented by this object to be read only.   * A read only file or directory cannot be modified.  Please note that    * GNU systems allow read only files to be deleted if the directory it   * is contained in is writable.   *   * @return <code>true</code> if the operation succeeded, <code>false</code>   * otherwise.   *   * @exception SecurityException If the <code>SecurityManager</code> does   * not allow this operation.   *   * @since 1.2   */  public boolean setReadOnly()  {    // Do a security check before trying to do anything else.    checkWrite();    return performSetReadOnly();  }  private static native File[] performListRoots();  /**   * This method returns an array of filesystem roots.  Some operating systems   * have volume oriented filesystem.  This method provides a mechanism for   * determining which volumes exist.  GNU systems use a single hierarchical   * filesystem, so will have only one "/" filesystem root.   *   * @return An array of <code>File</code> objects for each filesystem root   * available.   *   * @since 1.2   */  public static File[] listRoots()  {    File[] roots = performListRoots();        SecurityManager s = System.getSecurityManager();    if (s != null)      {	// Only return roots to which the security manager permits read access.	int count = roots.length;	for (int i = 0; i < roots.length; i++)	  {	    try	      {        	s.checkRead (roots[i].path);			      }	    catch (SecurityException sx)	      {	        roots[i] = null;		count--;	      }	  }	if (count != roots.length)	  {	    File[] newRoots = new File[count];	    int k = 0;	    for (int i=0; i < roots.length; i++)	      {	        if (roots[i] != null)		  newRoots[k++] = roots[i];	      }	    roots = newRoots;	  }      }    return roots;  }  /**   * This method creates a temporary file in the system temporary directory.    * The files created are guaranteed not to currently exist and the same file   * name will never be used twice in the same virtual machine instance.  The   * system temporary directory is determined by examinging the    * <code>java.io.tmpdir</code> system property.   * <p>   * The <code>prefix</code> parameter is a sequence of at least three   * characters that are used as the start of the generated filename.  The   * <code>suffix</code> parameter is a sequence of characters that is used   * to terminate the file name.  This parameter may be <code>null</code>   * and if it is, the suffix defaults to ".tmp".   * <p>   * If a <code>SecurityManager</code> exists, then its <code>checkWrite</code>   * method is used to verify that this operation is permitted.   * <p>   * This method is identical to calling    * <code>createTempFile(prefix, suffix, null)</code>.   *   * @param prefix The character prefix to use in generating the path name.   * @param suffix The character suffix to use in generating the path name.   *   * @exception IllegalArgumentException If the prefix or suffix are not valid.   * @exception SecurityException If there is no permission to perform    * this operation   * @exception IOException If an error occurs   */  public static File createTempFile(String prefix, String suffix)    throws IOException  {    return createTempFile(prefix, suffix, null);  }  /**   * This method compares the specified <code>File</code> to this one   * to test for equality.  It does this by comparing the canonical path names   * of the files.    * <p>   * The canonical paths of the files are determined by calling the   * <code>getCanonicalPath</code> method on each object.   * <p>   * This method returns a 0 if the specified <code>Object</code> is equal   * to this one, a negative value if it is less than this one    * a positive value if it is greater than this one.   *   * @return An integer as described above   *   * @since 1.2   */  public int compareTo(File other)  {    if (caseSensitive)      return path.compareTo (other.path);    else      return path.compareToIgnoreCase (other.path);  }  /**   * This method compares the specified <code>Object</code> to this one   * to test for equality.  It does this by comparing the canonical path names   * of the files.  This method is identical to <code>compareTo(File)</code>   * except that if the <code>Object</code> passed to it is not a    * <code>File</code>, it throws a <code>ClassCastException</code>   * <p>   * The canonical paths of the files are determined by calling the   * <code>getCanonicalPath</code> method on each object.   * <p>   * This method returns a 0 if the specified <code>Object</code> is equal   * to this one, a negative value if it is less than this one    * a positive value if it is greater than this one.   *   * @return An integer as described above   *   * @exception ClassCastException If the passed <code>Object</code> is    * not a <code>File</code>   *   * @since 1.2   */  public int compareTo(Object obj)  {    return compareTo((File) obj);  }  /*   * This native method actually performs the rename.   */  private native boolean performRenameTo (File dest);  /**   * This method renames the file represented by this object to the path   * of the file represented by the argument <code>File</code>.   *   * @param dest The <code>File</code> object representing the target name   *   * @return <code>true</code> if the rename succeeds, <code>false</code>    * otherwise.   *   * @exception SecurityException If write access is not allowed to the    * file by the <code>SecurityMananger</code>.   */  public synchronized boolean renameTo(File dest)  {    SecurityManager s = System.getSecurityManager();    String sname = getName();    String dname = dest.getName();    if (s != null)      {	s.checkWrite (sname);	s.checkWrite (dname);      }    return performRenameTo (dest);  }  /*   * This method does the actual setting of the modification time.   */  private native boolean performSetLastModified(long time);   /**   * This method sets the modification time on the file to the specified   * value.  This is specified as the number of seconds since midnight   * on January 1, 1970 GMT.   *   * @param time The desired modification time.   *   * @return <code>true</code> if the operation succeeded, <code>false</code>   * otherwise.   *   * @exception IllegalArgumentException If the specified time is negative.   * @exception SecurityException If the <code>SecurityManager</code> will   * not allow this operation.   *   * @since 1.2   */  public boolean setLastModified(long time)   {    if (time < 0)      throw new IllegalArgumentException("Negative modification time: " + time);    checkWrite();    return performSetLastModified(time);  }  private void checkWrite()  {    // Check the SecurityManager    SecurityManager s = System.getSecurityManager();        if (s != null)      s.checkWrite(path);  }  private void checkRead()  {    // Check the SecurityManager    SecurityManager s = System.getSecurityManager();        if (s != null)      s.checkRead(path);  }  /**    * Calling this method requests that the file represented by this object   * be deleted when the virtual machine exits.  Note that this request cannot   * be cancelled.  Also, it will only be carried out if the virtual machine   * exits normally.   *   * @exception SecurityException If deleting of the file is not allowed   *   * @since 1.2    */  // FIXME: This should use the ShutdownHook API once we implement that.  public void deleteOnExit()  {    // Check the SecurityManager    SecurityManager sm = System.getSecurityManager();    if (sm != null)      sm.checkDelete (getName());    DeleteFileHelper.add(this);  }  private void writeObject(ObjectOutputStream oos) throws IOException  {    oos.defaultWriteObject();    oos.writeChar(separatorChar);  }  private void readObject(ObjectInputStream ois)    throws ClassNotFoundException, IOException  {    ois.defaultReadObject();    // If the file was from an OS with a different dir separator,    // fixup the path to use the separator on this OS.    char oldSeparatorChar = ois.readChar();        if (oldSeparatorChar != separatorChar)      path = path.replace(oldSeparatorChar, separatorChar);  }  } // class File

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色婷婷av久久久久久久| 日韩亚洲国产中文字幕欧美| 欧美三级乱人伦电影| 国产亚洲欧洲一区高清在线观看| 一区二区不卡在线播放| 国产精品系列在线观看| 日韩午夜小视频| 亚洲午夜激情av| 99精品久久99久久久久| 精品福利二区三区| 日本欧美一区二区在线观看| 色综合久久九月婷婷色综合| 久久精品视频一区二区三区| 麻豆一区二区在线| 欧美日韩国产成人在线免费| 亚洲激情成人在线| 91欧美一区二区| 国产精品久久久久aaaa樱花 | 亚洲卡通动漫在线| 国产剧情av麻豆香蕉精品| 欧美日韩免费电影| 亚洲国产精品天堂| 在线视频国内一区二区| 亚洲视频免费看| jlzzjlzz亚洲女人18| 国产女主播一区| 国产精品综合在线视频| 精品99一区二区| 国产精品综合一区二区三区| 久久久久成人黄色影片| 国产成人免费网站| 国产欧美日韩另类一区| 成人一区在线观看| 中文字幕五月欧美| 日本道免费精品一区二区三区| 中文字幕日韩精品一区| 91在线国产福利| 亚洲一区在线观看免费观看电影高清 | 成人免费福利片| 国产精品国产三级国产普通话99| 99国产一区二区三精品乱码| 国产精品久久久久久户外露出| 成人app网站| 亚洲精品亚洲人成人网| 欧美精品电影在线播放| 免费在线观看不卡| 国产免费久久精品| 91视频免费播放| 亚洲第一会所有码转帖| 欧美成人女星排名| 国产成人在线电影| 亚洲色图欧美在线| 欧美精品欧美精品系列| 激情五月播播久久久精品| 欧美国产在线观看| 欧美亚洲愉拍一区二区| 免费在线观看不卡| 中文字幕中文字幕在线一区| 欧美亚洲另类激情小说| 黄色精品一二区| 中文字幕日本不卡| 欧美一区二区三区婷婷月色| 国产精品一区免费在线观看| 亚洲精品免费看| 欧美成va人片在线观看| av高清不卡在线| 日韩精品成人一区二区三区| 国产亚洲1区2区3区| 在线精品国精品国产尤物884a| 蜜臀av一区二区在线观看| 中文字幕免费一区| 91精品欧美一区二区三区综合在 | 91精品国产色综合久久久蜜香臀| 激情五月婷婷综合网| 一区二区在线观看不卡| 精品国产亚洲一区二区三区在线观看| 国产99久久久国产精品| 爽好多水快深点欧美视频| 国产视频一区在线观看| 欧美乱妇23p| 99精品欧美一区二区蜜桃免费 | 成人久久视频在线观看| 香蕉加勒比综合久久| 中文字幕在线观看不卡| 欧美sm美女调教| 欧美天堂一区二区三区| 成人动漫视频在线| 狠狠色丁香久久婷婷综| 亚洲成av人片在线观看无码| 国产精品久久久久国产精品日日| 精品美女一区二区三区| 欧美久久久久中文字幕| 在线视频综合导航| 成人av电影免费在线播放| 精品一区二区在线观看| 香蕉久久一区二区不卡无毒影院| 国产精品夫妻自拍| 久久久不卡网国产精品一区| 日韩一级高清毛片| 欧美日韩国产综合久久| 色婷婷综合久色| 成人av影视在线观看| 国产精品123区| 国产在线看一区| 麻豆国产精品777777在线| 婷婷丁香激情综合| 亚洲综合在线电影| 亚洲精品美腿丝袜| 亚洲另类在线一区| 亚洲综合在线电影| 亚洲男人的天堂av| 亚洲欧洲综合另类| 亚洲视频在线一区| 亚洲一区免费观看| 亚洲一区二区在线播放相泽 | 国产综合一区二区| 韩国三级中文字幕hd久久精品| 麻豆一区二区三| 久久草av在线| 韩国三级中文字幕hd久久精品| 久草在线在线精品观看| 国产在线观看一区二区| 国产一区二区三区久久久 | 婷婷综合久久一区二区三区| 视频在线观看91| 日本欧美一区二区| 男人的j进女人的j一区| 国产一区 二区| 成人一区二区三区视频在线观看| 成人av综合在线| 色婷婷久久综合| 日韩欧美国产一区二区三区| 精品福利二区三区| 国产精品成人一区二区艾草| 亚洲一区二区四区蜜桃| 五月天国产精品| 国产一区二区导航在线播放| 成人久久18免费网站麻豆 | 99亚偷拍自图区亚洲| 欧美在线色视频| 欧美不卡视频一区| 国产精品电影一区二区三区| 亚洲一区二区三区小说| 日韩在线播放一区二区| 国产成人精品影院| 色婷婷av一区二区三区之一色屋| 欧美日韩中文精品| 久久久影视传媒| 亚洲美女在线国产| 麻豆久久久久久| 成人av电影免费观看| 制服丝袜日韩国产| 欧美激情一区不卡| 美脚の诱脚舐め脚责91| 91麻豆精品秘密| 日韩精品在线看片z| 自拍偷拍亚洲激情| 理论电影国产精品| 欧美视频一区二区三区在线观看| 日韩精品在线网站| 亚洲国产综合在线| 99riav久久精品riav| 精品国产制服丝袜高跟| 一级日本不卡的影视| 国产一本一道久久香蕉| 欧美精品在欧美一区二区少妇| 久久精品一区二区| 日本va欧美va瓶| 91国在线观看| 国产精品久久久久三级| 精品一区二区精品| 欧美乱熟臀69xxxxxx| 一区二区三区鲁丝不卡| 国产成人av影院| 欧美tk—视频vk| 蜜臀av性久久久久蜜臀aⅴ四虎| 9l国产精品久久久久麻豆| 久久精品视频一区二区三区| 免费成人在线播放| 欧美精品xxxxbbbb| 午夜精品福利一区二区蜜股av | 国产精品白丝jk黑袜喷水| 欧美一区二区久久| 亚洲动漫第一页| 在线观看免费亚洲| 一区二区理论电影在线观看| 国产69精品久久99不卡| 久久久久久影视| 国产精品91xxx| 久久久精品中文字幕麻豆发布| 久久精品国产免费| 日韩免费一区二区三区在线播放| 午夜精品免费在线| 欧美日韩精品一区二区三区 | 九九九精品视频| 日韩欧美国产系列| 韩国一区二区视频| 国产色91在线| 成人av在线播放网站| 国产精品动漫网站|