public final class FileHelper
extends java.lang.Object
| Constructor | Description |
|---|---|
FileHelper() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
copyFile(java.io.File in,
java.io.File out) |
Copy a file.
|
static java.io.File |
getDirectory(java.io.File f) |
Get the directory part of the specified file path.
|
static java.lang.String |
getFilename(java.io.File file) |
Get file name from the specified File object.
|
public static java.io.File getDirectory(java.io.File f)
f - File to process.public static void copyFile(java.io.File in,
java.io.File out)
throws java.io.IOException
in - The source file.out - The target location.java.io.IOException - If an I/O error occur.public static java.lang.String getFilename(java.io.File file)
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.