public class FileHelper
extends java.lang.Object
| Constructor and Description |
|---|
FileHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
move(java.io.File from,
java.io.File to)
Move a file from one location to another.
|
static void |
move(java.io.File from,
java.io.File to,
boolean overwrite)
Move a file from one location to another.
|
public static void move(java.io.File from,
java.io.File to)
throws java.io.IOException
from - file which should be moved.to - desired destination of the file.java.io.IOException - if an error occurs.public static void move(java.io.File from,
java.io.File to,
boolean overwrite)
throws java.io.IOException
from - file which should be moved.to - desired destination of the file.overwrite - If false, an exception will be thrown rather than overwrite a file.java.io.IOException - if an error occurs.