|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openoffice.ide.eclipse.core.utils.FileHelper
public class FileHelper
Utility class for file handling.
Constructor Summary | |
---|---|
FileHelper()
|
Method Summary | |
---|---|
static void |
copyFile(java.io.File pSrc,
java.io.File pDst,
boolean pForce)
Copy the file src into the file dst. |
static void |
move(java.io.File pSrc,
java.io.File pDst,
boolean pForce)
Moves the src directory or file to the dst container. |
static void |
remove(java.io.File pFile)
Removes a file or directory. |
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 void move(java.io.File pSrc, java.io.File pDst, boolean pForce) throws java.io.IOException
pSrc
- the file or directory to movepDst
- the destination directorypForce
- if set to true
, overwrites the existing files
java.io.IOException
- is thrown when one of the parameters is null
or the underlying file doesn't exists. This exception can also
be thrown if the writing rights are missing on dstpublic static void copyFile(java.io.File pSrc, java.io.File pDst, boolean pForce) throws java.io.IOException
true
, otherwise nothing will be done.
pSrc
- the original filepDst
- the file to createpForce
- overwrite the existing destination if any
java.io.IOException
- is thrown if
null
or isn't readable,null
public static void remove(java.io.File pFile)
pFile
- the file or directory to remove
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |