|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hsqldb.lib.FileUtil
A collection of static file management methods.
Field Summary | |
static boolean |
fsIsIgnoreCase
|
static boolean |
fsNormalizesPosixSeparator
|
Constructor Summary | |
FileUtil()
|
Method Summary | |
static File |
absoluteFile(String path)
Retrieves the absolute File, given some path specification. |
static String |
absolutePath(String path)
Retrieves the absolute path, given some path specification. |
static File |
canonicalFile(File f)
Retrieves the canonical file for the given file, in a JDK 1.1 complaint way. |
static File |
canonicalFile(String path)
Retrieves the canonical file for the given path, in a JDK 1.1 complaint way. |
static String |
canonicalOrAbsolutePath(String path)
Retrieves the canonical path for the given path, or the absolute path if attemting to retrieve the canonical path fails. |
static String |
canonicalPath(File f)
Retrieves the canonical path for the given File in a JDK 1.1 complaint way. |
static String |
canonicalPath(String path)
Retrieves the canonical path for the given path in a JDK 1.1 complaint way. |
static void |
delete(String filename)
Delete the named file |
static boolean |
exists(String filename)
Return true or false based on whether the named file exists. |
static void |
renameOverwrite(String oldname,
String newname)
Rename the file with oldname to newname. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final boolean fsIsIgnoreCase
public static final boolean fsNormalizesPosixSeparator
Constructor Detail |
public FileUtil()
Method Detail |
public static void delete(String filename) throws IOException
IOException
public static boolean exists(String filename) throws IOException
IOException
public static void renameOverwrite(String oldname, String newname) throws IOException
IOException
public static String absolutePath(String path)
path
- the path for which to retrieve the absolute path
public static File absoluteFile(String path)
path
- the path for which to retrieve the absolute File
public static File canonicalFile(File f) throws IOException
f
- the File for which to retrieve the absolute File
IOException
public static File canonicalFile(String path) throws IOException
path
- the path for which to retrieve the canonical File
IOException
public static String canonicalPath(File f) throws IOException
f
- the File for which to retrieve the canonical path
IOException
public static String canonicalPath(String path) throws IOException
path
- the path for which to retrieve the canonical path
IOException
public static String canonicalOrAbsolutePath(String path)
path
- the path for which to retrieve the canonical or
absolute path
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |