Class FileHelper
java.lang.Object
org.apache.poi.openxml4j.opc.internal.FileHelper
Provide useful method to manage file.
- Version:
- 0.1
- Author:
- Julien Chable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
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.
-
Constructor Details
-
FileHelper
public FileHelper()
-
-
Method Details
-
getDirectory
Get the directory part of the specified file path.- Parameters:
f
- File to process.- Returns:
- The directory path from the specified
-
copyFile
Copy a file.- Parameters:
in
- The source file.out
- The target location.- Throws:
IOException
- If an I/O error occur.
-
getFilename
Get file name from the specified File object.
-