|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.xmlpage.util.XmlPageFileUtils
public class XmlPageFileUtils
File Utilities for XmlPage Plugin
| Constructor Summary | |
|---|---|
protected |
XmlPageFileUtils()
Default constructor |
| Method Summary | |
|---|---|
static void |
copyFile(java.lang.String strDirectory,
java.lang.String strFileName,
java.lang.String strNewDirectory)
Copy file from directory strDirectory to directory strNewDirectory |
static boolean |
createFile(java.lang.String strFilePath)
Create a file using the path given in parameter |
static boolean |
makeDirectory(java.lang.String strDirectoryPath)
Make a directory using the path given in parameter |
static boolean |
removeDirectory(java.io.File fDirectoryPath)
Delete a directory and everything in it |
static boolean |
removeDirectory(java.lang.String strDirectoryPath)
Delete a directory and everything in it |
static boolean |
removeFile(java.lang.String strFilePath)
Delete a file |
static boolean |
renameDirectory(java.lang.String strOriginalDirectory,
java.lang.String strNewDirectory)
Rename a file or directory with another name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected XmlPageFileUtils()
| Method Detail |
|---|
public static boolean makeDirectory(java.lang.String strDirectoryPath)
strDirectoryPath - the path of new directory
public static boolean createFile(java.lang.String strFilePath)
strFilePath - file path to create
public static void copyFile(java.lang.String strDirectory,
java.lang.String strFileName,
java.lang.String strNewDirectory)
strDirectory - original directory contening the filestrFileName - file name to copystrNewDirectory - destination directory for the copied file
public static boolean renameDirectory(java.lang.String strOriginalDirectory,
java.lang.String strNewDirectory)
strOriginalDirectory - original directory pathstrNewDirectory - new directory path
public static boolean removeFile(java.lang.String strFilePath)
strFilePath - path of deleted file
public static boolean removeDirectory(java.lang.String strDirectoryPath)
strDirectoryPath - path of deleted directory
public static boolean removeDirectory(java.io.File fDirectoryPath)
fDirectoryPath - File of directory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||