|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.openxml4j.opc.internal.FileHelper
public final class FileHelper
Provide useful method to manage file.
Constructor Summary | |
---|---|
FileHelper()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileHelper()
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |