|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.cnes.sitools.util.FileCopyUtils
public final class FileCopyUtils
Utility class to copy a file or a folder and its sub-folder
Method Summary | |
---|---|
static void |
copyAFile(java.lang.String entree,
java.lang.String sortie)
Copy a file at the source URL to the destination URL. |
static void |
copyAFolder(java.io.File file,
java.lang.String destUrl)
Copy the content of a folder and its sub-folders. |
static void |
copyAFolder(java.io.File sourceFile,
java.lang.String destUrl,
boolean excludeRoot)
Copy all folder in a directory excluding the root directory |
static void |
copyAFolder(java.lang.String sourceUrl,
java.lang.String destUrl)
Copy a folder |
static void |
copyAFolderExclude(java.io.File file,
java.lang.String destUrl,
java.lang.String excludeExt)
Copy the content of a folder and its sub-folders. |
static void |
copyAFolderExclude(java.lang.String sourceUrl,
java.lang.String destUrl,
java.lang.String exclude)
Copy a folder excluding some files |
static void |
unzipAFile(java.lang.String inputFile,
java.lang.String outputFolder)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void copyAFolder(java.lang.String sourceUrl, java.lang.String destUrl)
sourceUrl
- source pathdestUrl
- destination pathpublic static void copyAFolderExclude(java.lang.String sourceUrl, java.lang.String destUrl, java.lang.String exclude)
sourceUrl
- source pathdestUrl
- destination pathexclude
- excluding stringpublic static void copyAFolderExclude(java.io.File file, java.lang.String destUrl, java.lang.String excludeExt)
file
- the folder to copydestUrl
- the destination pathexcludeExt
- exclude a folderpublic static void copyAFolder(java.io.File sourceFile, java.lang.String destUrl, boolean excludeRoot)
sourceFile
- source filedestUrl
- destination urlexcludeRoot
- excluding boolean, true to exclude rootpublic static void copyAFolder(java.io.File file, java.lang.String destUrl)
file
- the folder to copydestUrl
- the destination URLpublic static void copyAFile(java.lang.String entree, java.lang.String sortie)
entree
- the source file URLsortie
- the destination file URLpublic static void unzipAFile(java.lang.String inputFile, java.lang.String outputFolder)
inputFile
- complete zip filenameoutputFolder
- directory path
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |