Also provides the default FileAccess implementation
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static int | |
| private static FileAccessRes | |
| private static FileUtil | |
| public final boolean | |
| public final boolean | |
| pack-priv final Random |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the absolute paththe path for which to retrieve the absolute path path)Retrieves the absolute path, given some path specification. |
| public File | Returns: the canonical Filethe File for which to retrieve the absolute File f)Retrieves the canonical file for the given file, in a JDK 1.1 compliant way. |
| public File | Returns: the canonical Filethe path for which to retrieve the canonical File path)Retrieves the canonical file for the given path, in a JDK 1.1 compliant way. |
| public String | Returns: the canonical or absolute paththe path for which to retrieve the canonical or
absolute path path)Retrieves the canonical path for the given path, or the absolute path if attempting to retrieve the canonical path fails. |
| public String | Returns: the canonical paththe File for which to retrieve the canonical path f)Retrieves the canonical path for the given File, in a JDK 1.1 compliant way. |
| public String | Returns: the canonical paththe path for which to retrieve the canonical path path)Retrieves the canonical path for the given path, in a JDK 1.1 compliant way. |
| public void | |
| public boolean | |
| public void | deleteOnExit(File
the abstract pathname of the file be deleted when the virtual
machine terminates f)Requests, in a JDK 1.1 compliant way, that the file or directory denoted by the given abstract pathname be deleted when the virtual machine terminates. |
| public static boolean | Returns: currently always truefull path or name of database (without a file extension) dbNamePath)Utility method for user applications. |
| public boolean | |
| public boolean | |
| public static File[] | Returns: File[]full path or name of database (without a file
extension) dbNamePath)Utility method for user applications. |
| public static File[] | Returns: File[]full path or name of database (without a file
extension) dbNamePath)Returns a list of existing main files for a database. |
| public static FileAccess | |
| public FileAccess. | |
| public static FileUtil | |
| public boolean | |
| public static String | |
| public void | |
| public static String | |
| public InputStream | openInputStreamElement(String streamName)
Implements org.
|
| public OutputStream | openOutputStreamElement(String streamName)
Implements org.
|
| public OutputStream | openOutputStreamElementAppend(String streamName)
Implements org.
|
| public boolean | |
| public boolean | |
| public boolean | renameElementOrCopy(String oldName, String newName, EventLogInterface logger)
Implements org.
|
| private boolean | Returns: true if successfulString oldname, String String newname)Rename the file with oldname to newname. |
| discardSuffixLength | back to summary |
|---|---|
| pack-priv static int discardSuffixLength | |
| fileAccessRes | back to summary |
|---|---|
| private static FileAccessRes fileAccessRes | |
| fileUtil | back to summary |
|---|---|
| private static FileUtil fileUtil | |
| fsIsIgnoreCase | back to summary |
|---|---|
| public final boolean fsIsIgnoreCase | |
| fsNormalizesPosixSeparator | back to summary |
|---|---|
| public final boolean fsNormalizesPosixSeparator | |
| random | back to summary |
|---|---|
| pack-priv final Random random | |
| FileUtil | back to summary |
|---|---|
| pack-priv FileUtil() Creates a new instance of FileUtil | |
| absolutePath | back to summary |
|---|---|
| public String absolutePath(String path) Retrieves the absolute path, given some path specification. | |
| canonicalFile | back to summary |
|---|---|
| public File canonicalFile(File f) throws IOException Retrieves the canonical file for the given file, in a JDK 1.1 compliant way.
| |
| canonicalFile | back to summary |
|---|---|
| public File canonicalFile(String path) throws IOException Retrieves the canonical file for the given path, in a JDK 1.1 compliant way.
| |
| canonicalOrAbsolutePath | back to summary |
|---|---|
| public String canonicalOrAbsolutePath(String path) Retrieves the canonical path for the given path, or the absolute path if attempting to retrieve the canonical path fails. | |
| canonicalPath | back to summary |
|---|---|
| public String canonicalPath(File f) throws IOException Retrieves the canonical path for the given File, in a JDK 1.1 compliant way.
| |
| canonicalPath | back to summary |
|---|---|
| public String canonicalPath(String path) throws IOException Retrieves the canonical path for the given path, in a JDK 1.1 compliant way.
| |
| createParentDirs | back to summary |
|---|---|
| public void createParentDirs(String filename) Implements org. | |
| delete | back to summary |
|---|---|
| public boolean delete(String filename) Delete the named file
| |
| deleteOnExit | back to summary |
|---|---|
| public void deleteOnExit(File f) Requests, in a JDK 1.1 compliant way, that the file or directory denoted by the given abstract pathname be deleted when the virtual machine terminates. Deletion will be attempted only for JDK 1.2 and greater runtime environments and only upon normal termination of the virtual machine, as defined by the Java Language Specification. Once deletion has been sucessfully requested, it is not possible to cancel the request. This method should therefore be used with care.
| |
| deleteOrRenameDatabaseFiles | back to summary |
|---|---|
| public static boolean deleteOrRenameDatabaseFiles(String dbNamePath) Utility method for user applications. Attempts to delete all the files for the database as listed by the getDatabaseFileList() method. If any of the current, main database files cannot be deleted, it is renamed by adding a suffix containing a hexadecimal timestamp portion and the ".old" extension. Also deletes the ".tmp" directory.
| |
| exists | back to summary |
|---|---|
| public boolean exists(String filename) Return true or false based on whether the named file exists.
| |
| exists | back to summary |
|---|---|
| public boolean exists(String fileName, boolean resource, Class<T> cla) | |
| getDatabaseFileList | back to summary |
|---|---|
| public static File[] getDatabaseFileList(String dbNamePath) Utility method for user applications. Returns a list of files that currently exist for a database. The list includes current database files as well as ".new", and ".old" versions of the files, plus any app logs. | |
| getDatabaseMainFileList | back to summary |
|---|---|
| public static File[] getDatabaseMainFileList(String dbNamePath) Returns a list of existing main files for a database. The list excludes non-essential files. | |
| getFileAccess | back to summary |
|---|---|
| public static FileAccess getFileAccess(boolean isResource) | |
| getFileSync | back to summary |
|---|---|
| public FileAccess. Implements org. | |
| getFileUtil | back to summary |
|---|---|
| public static FileUtil getFileUtil() | |
| isStreamElement | back to summary |
|---|---|
| public boolean isStreamElement(String elementName) Implements org. | |
| makeDirectories | back to summary |
|---|---|
| public static String makeDirectories(String path) | |
| makeParentDirectories | back to summary |
|---|---|
| public void makeParentDirectories(File f) | |
| newDiscardFileName | back to summary |
|---|---|
| public static String newDiscardFileName(String filename) | |
| openInputStreamElement | back to summary |
|---|---|
| public InputStream openInputStreamElement(String streamName) throws IOException Implements org. | |
| openOutputStreamElement | back to summary |
|---|---|
| public OutputStream openOutputStreamElement(String streamName) throws IOException Implements org. | |
| openOutputStreamElementAppend | back to summary |
|---|---|
| public OutputStream openOutputStreamElementAppend(String streamName) throws IOException Implements org. | |
| removeElement | back to summary |
|---|---|
| public boolean removeElement(String filename) Implements org. | |
| renameElement | back to summary |
|---|---|
| public boolean renameElement(String oldName, String newName) Implements org. | |
| renameElementOrCopy | back to summary |
|---|---|
| public boolean renameElementOrCopy(String oldName, String newName, EventLogInterface logger) Implements org. | |
| renameWithOverwrite | back to summary |
|---|---|
| private boolean renameWithOverwrite(String oldname, String newname) Rename the file with oldname to newname. If a file with newname already exists, it is deleted before the renaming operation proceeds. If a file with oldname does not exist, no file will exist after the operation. | |
| Modifier and Type | Field and Description |
|---|---|
| private File | |
| private String | |
| private boolean | |
| pack-priv String[] | |
| private File | |
| pack-priv String[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if an accepted filethe directory dir, String file name name)Implements java. Accepts all HSQLDB main persistence files as well as ".new" and ".old" versions. |
| public File[] | |
| public File[] | |
| public File[] |
| canonicalFile | back to summary |
|---|---|
| private File canonicalFile | |
| dbName | back to summary |
|---|---|
| private String dbName | |
| extraFiles | back to summary |
|---|---|
| private boolean extraFiles | |
| extraSuffixes | back to summary |
|---|---|
| pack-priv String[] extraSuffixes | |
| parent | back to summary |
|---|---|
| private File parent | |
| suffixes | back to summary |
|---|---|
| pack-priv String[] suffixes | |
| DatabaseFilenameFilter | back to summary |
|---|---|
| pack-priv DatabaseFilenameFilter(String dbNamePath) | |
| DatabaseFilenameFilter | back to summary |
|---|---|
| pack-priv DatabaseFilenameFilter(String dbNamePath, boolean extras) | |
| accept | back to summary |
|---|---|
| public boolean accept(File dir, String name) Implements java. Accepts all HSQLDB main persistence files as well as ".new" and ".old" versions. | |
| getCompleteMainFileSetList | back to summary |
|---|---|
| public File[] getCompleteMainFileSetList() | |
| getExistingFileListInDirectory | back to summary |
|---|---|
| public File[] getExistingFileListInDirectory() | |
| getExistingMainFileSetList | back to summary |
|---|---|
| public File[] getExistingMainFileSetList() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv FileDescriptor |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| outDescriptor | back to summary |
|---|---|
| pack-priv FileDescriptor outDescriptor | |
| FileSync | back to summary |
|---|---|
| pack-priv FileSync(FileOutputStream os) throws IOException | |
| sync | back to summary |
|---|---|
| public void sync() throws IOException Implements org. | |