|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.hyades.models.common.util.FileUtil
public class FileUtil
This class implements some utility methods for dealing with java.io.File Some of the methods require JDK 1.4
| Constructor Summary | |
|---|---|
FileUtil()
|
|
| Method Summary | |
|---|---|
static boolean |
copyFile(java.lang.String srcFile,
java.lang.String destFile)
This method uses JDK 1.4 nio channels to perform fast file copy. |
static void |
copyFileSafe(java.lang.String srcFile,
java.lang.String destFile)
|
static boolean |
deltree(java.io.File root)
This method attempts to delete the specified root file. |
static java.io.File |
getTempDir()
Returns the system temp directory. |
static java.io.File[] |
listAllFiles(java.io.File srcDir)
This method returns an array of File objects that are children of the specified srcDir, and that return true to the .isFile() method. |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileUtil()
| Method Detail |
|---|
public static java.io.File getTempDir()
public static boolean copyFile(java.lang.String srcFile,
java.lang.String destFile)
srcFile - destFile -
public static void copyFileSafe(java.lang.String srcFile,
java.lang.String destFile)
throws java.io.IOException
java.io.IOExceptionpublic static java.io.File[] listAllFiles(java.io.File srcDir)
true to the .isFile() method.
In other words, the array is the result of a recursive search of the
specified directory for all files (but not directories.)
srcDir -
public static boolean deltree(java.io.File root)
root -
public static void main(java.lang.String[] args)
|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||