public class FileHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.util.ResourceBundle |
labels
Locale specific strings displayed to the user.
|
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.
|
protected static java.util.ResourceBundle labels
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.Copyright (c) 2001-2020 by Stephen Ostermiller