net.shredzone.ifish
Class Util
java.lang.Object
net.shredzone.ifish.Util
public final class Util
- extends Object
Some common iFish utility functions.
- Version:
- $Id: Util.java 291 2009-04-28 21:29:27Z shred $
|
Method Summary |
static boolean |
renameFile(File oldName,
File newName)
Renames a file to a new name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
renameFile
public static boolean renameFile(File oldName,
File newName)
- Renames a file to a new name.
This function shouldn't be required, but the Sun VM is buggy and
might refuse to rename a file for no apparent reasons. Due to the
workaround, renaming might take slightly more time.
- Parameters:
oldName - File to be renamednewName - New name of the file
- Returns:
- true: rename was successful.
Copyright © 2007-2011
shredzone.org. All Rights Reserved.