| java.lang.Object org.h2.util.FileUtils
FileUtils | public class FileUtils (Code) | | This utility class supports basic operations on files
|
Method Summary | |
public static void | createDirs(String fileName) | public static String | createTempFile(String prefix, String suffix, boolean deleteOnExit, boolean inTempDir) Create a new temporary file. | public static void | delete(String fileName) | public static boolean | exists(String fileName) | public static boolean | fileStartsWith(String fileName, String prefix) | public static String | getAbsolutePath(String fileName) | public static boolean | getBooleanProperty(Properties prop, String key, boolean def) | public static String | getFileInUserHome(String fileName) | public static String | getFileName(String name) | public static int | getIntProperty(Properties prop, String key, int def) | public static String | getParent(String fileName) | public static boolean | isAbsolute(String fileName) | public static boolean | isDirectory(String fileName) | public static boolean | isReadOnly(String fileName) | public static long | length(String fileName) | public static String[] | listFiles(String path) | public static synchronized Properties | loadProperties(String fileName) | public static String | normalize(String fileName) | public static InputStream | openFileInputStream(String fileName) | public static OutputStream | openFileOutputStream(String fileName, boolean append) | public static Writer | openFileWriter(String fileName, boolean append) | public static void | rename(String oldName, String newName) | public static void | setLength(RandomAccessFile file, long newLength) | public static void | trace(String method, String fileName, Object o) | public static void | tryDelete(String fileName) |
createTempFile | public static String createTempFile(String prefix, String suffix, boolean deleteOnExit, boolean inTempDir) throws IOException, SQLException(Code) | | Create a new temporary file.
Parameters: prefix - the prefix of the file name (including directory name ifrequired) Parameters: suffix - the suffix Parameters: deleteOnExit - if the file should be deleted when the virtualmachine exists Parameters: inTempDir - if the file should be stored in the temporary directory the name of the created file |
isAbsolute | public static boolean isAbsolute(String fileName)(Code) | | |
isDirectory | public static boolean isDirectory(String fileName)(Code) | | |
isReadOnly | public static boolean isReadOnly(String fileName)(Code) | | |
tryDelete | public static void tryDelete(String fileName)(Code) | | |
|
|