|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.moeaframework.util.io.FileUtils
public class FileUtils
Helper methods for working with files beyond what is provided by
File.
| Method Summary | |
|---|---|
static void |
copy(File source,
File destination)
Copies all the bytes from one file to another. |
static void |
delete(File file)
Deletes a file. |
static void |
mkdir(File directory)
Creates the specified directory if it does not yet exist. |
static void |
move(File source,
File destination)
Moves the file from one path to another. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void move(File source,
File destination)
throws IOException
mv command.
source - the source filedestination - the destination file
IOException - if an I/O error occurs
public static void copy(File source,
File destination)
throws IOException
source - the source filedestination - the destination file
IOException - if an I/O error occurred
public static void delete(File file)
throws IOException
file - the file to delete
IOException - if the file could not be deleted
public static void mkdir(File directory)
throws IOException
directory - the directory to create
IOException - if the directory could not be created
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||