| java.lang.Object com.Ostermiller.util.FileHelper
FileHelper | public class FileHelper (Code) | | Utilities for File manipulation.
More information about this class is available from ostermiller.org.
author: Stephen Ostermiller http://ostermiller.org/contact.pl?regarding=Java+Utilities since: ostermillerutils 1.00.00 |
Method Summary | |
public static void | move(File from, File to) Move a file from one location to another. | public static void | move(File from, File to, boolean overwrite) Move a file from one location to another. |
labels | protected static ResourceBundle labels(Code) | | Locale specific strings displayed to the user.
since: ostermillerutils 1.00.00 |
move | public static void move(File from, File to) throws IOException(Code) | | Move a file from one location to another. An attempt is made to rename
the file and if that fails, the file is copied and the old file deleted.
If the destination file already exists, an exception will be thrown.
Parameters: from - file which should be moved. Parameters: to - desired destination of the file. throws: IOException - if an error occurs. since: ostermillerutils 1.00.00 |
move | public static void move(File from, File to, boolean overwrite) throws IOException(Code) | | Move a file from one location to another. An attempt is made to rename
the file and if that fails, the file is copied and the old file deleted.
Parameters: from - file which should be moved. Parameters: to - desired destination of the file. Parameters: overwrite - If false, an exception will be thrown rather than overwrite a file. throws: IOException - if an error occurs. since: ostermillerutils 1.00.00 |
|
|