public final class FileHelper extends Object
Constructor and Description |
---|
FileHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
copyFile(File in,
File out)
Copy a file.
|
static File |
getDirectory(File f)
Get the directory part of the specified file path.
|
static String |
getFilename(File file)
Get file name from the specified File object.
|
public static File getDirectory(File f)
f
- File to process.public static void copyFile(File in, File out) throws IOException
in
- The source file.out
- The target location.IOException
- If an I/O error occur.Copyright © 2020. All rights reserved.