public class FileCopy extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
FileCopy.FileExistsException |
Wird geworfen, wenn eine Datei ueberschrieben werden soll, die bereits existiert.
|
Constructor | Description |
---|---|
FileCopy() |
Modifier and Type | Method | Description |
---|---|---|
static void |
copy(File from,
File to,
boolean force) |
Kopiert die Quell-Datei zur Ziel-Datei.
|
public static void copy(File from, File to, boolean force) throws IOException, FileCopy.FileExistsException
from
- Quelle.to
- Ziel.force
- Ohne Warnung ueberschreiben, falls die Zieldatei bereits existiert.IOException
- Wenn beim Kopieren ein Fehler auftratFileCopy.FileExistsException
- wenn die Zieldatei existiert und force
false ist.Copyright © 2018. All rights reserved.