|
||||||||||
| 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 |
| 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 path
public static void copyAFolderExclude(java.lang.String sourceUrl,
java.lang.String destUrl,
java.lang.String exclude)
sourceUrl - source pathdestUrl - destination pathexclude - excluding string
public 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 folder
public static void copyAFolder(java.io.File sourceFile,
java.lang.String destUrl,
boolean excludeRoot)
sourceFile - source filedestUrl - destination urlexcludeRoot - excluding boolean, true to exclude root
public static void copyAFolder(java.io.File file,
java.lang.String destUrl)
file - the folder to copydestUrl - the destination URL
public static void copyAFile(java.lang.String entree,
java.lang.String sortie)
entree - the source file URLsortie - the destination file URL
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||