public class FTFileUtil
extends java.lang.Object
| Constructor and Description |
|---|
FTFileUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
fileExists(java.lang.String fileName)
Check if a file exists ?
|
static void |
mkFile(java.lang.String fileName,
int length)
Create a file.
|
private static boolean |
removeDirectory(java.io.File directory)
Remove a directory and all of its contents.
|
static java.lang.String |
removeDirectory(java.lang.String directory)
Remove a directory and all of its contents.
|
static void |
renameFile(java.lang.String location,
java.lang.String name,
java.lang.String newName)
rename a file.
|
public static void mkFile(java.lang.String fileName,
int length)
throws java.lang.Exception
fileName - the file's name.length - the number of bytes of test data in the file.java.lang.Exception - oops.public static void renameFile(java.lang.String location,
java.lang.String name,
java.lang.String newName)
throws java.lang.Exception
location - location of the filename - the file's namenewName - the file's new namejava.lang.Exceptionpublic static java.lang.String fileExists(java.lang.String fileName)
throws java.security.PrivilegedActionException
fileName - the file's name.java.lang.Exception - if any exception occursjava.security.PrivilegedActionExceptionprivate static boolean removeDirectory(java.io.File directory)
directory - the directory's name.public static java.lang.String removeDirectory(java.lang.String directory)
throws java.security.PrivilegedActionException
directory - the directory's name.java.security.PrivilegedActionExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.