org.axiondb.io
Class FileUtil
java.lang.Object
org.axiondb.io.FileUtil
public class FileUtil
- extends Object
Common file utils.
- Version:
- $Revision: 1.5 $ $Date: 2005/04/14 00:30:02 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileUtil
public FileUtil()
assertFileNotLocked
public static void assertFileNotLocked(File file)
throws AxionException
- Throws:
AxionException
delete
public static boolean delete(File file)
throws AxionException
- Get rid of File file, whether a true file or dir.
- Throws:
AxionException
getLength
public static long getLength(File file)
throws IOException
- Throws:
IOException
renameFile
public static void renameFile(File dir,
String old,
String name,
String ext)
renameToUpperCase
public static void renameToUpperCase(File dir)
throws IOException
- Throws:
IOException
truncate
public static void truncate(File file,
long length)
throws AxionException
- Truncate file to a given length
- Throws:
AxionException
- See Also:
FileChannel.truncate()}