| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public boolean | isReadOnlyDatabase()
Overrides org. Implements org. Determine whether the database is read only. |
| pack-priv StorageFile | Returns: A corresponding StorageFile objectThe path name of the file. Guaranteed not to be in the temporary file directory. If null
then the database directory should be returned. path)Implements abstract org. Construct a persistent StorageFile from a path name. |
| pack-priv StorageFile | Returns: A corresponding StorageFile objectThe path name of the directory. Guaranteed not to be in the temporary file directory.
Guaranteed not to be null directoryName, String The name of the file within the directory. Guaranteed not to be null. fileName)Implements abstract org. Construct a persistent StorageFile from a directory and path name. |
| pack-priv StorageFile | Returns: A corresponding StorageFile objectThe path name of the directory. Guaranteed not to be to be null. Guaranteed to be
created by a call to one of the newPersistentFile methods. directoryName, String The name of the file within the directory. Guaranteed not to be null. fileName)Implements abstract org. Construct a persistent StorageFile from a directory and path name. |
| public final StorageFile | Returns: A corresponding StorageFile objectThe path name of the file path)Overrides org. Implements org. Construct a StorageFile from a path name. |
| public final StorageFile | Returns: A corresponding StorageFile objectThe directory part of the path name. directoryName, String The name of the file within the directory. fileName)Overrides org. Implements org. Construct a StorageFile from a directory and file name. |
| public final StorageFile | Returns: A corresponding StorageFile objectThe directory part of the path name. directoryName, String The name of the file within the directory. fileName)Overrides org. Implements org. Construct a StorageFile from a directory and file name. |
| public boolean | Returns: true if the storage supports random access, false if it is writable.Overrides org. Implements org. Determine whether the storage supports random access. |
| public boolean | Returns: true if an StIRandomAccess file opened with "rws" or "rwd" modes immediately writes data to the underlying storage, false if not.Implements org. This method tests whether the "rws" and "rwd" modes are implemented. |
| public void | sync(OutputStream
The stream to be synchronized. stream, boolean If true then this method must force both changes to the file's
contents and metadata to be written to storage; if false, it need only force file content changes
to be written. The implementation is allowed to ignore this parameter and always force out
metadata changes. metaData)Implements org. Force the data of an output stream out to the underlying storage. |
| DirStorageFactory | back to summary |
|---|---|
| public DirStorageFactory() | |
| doInit | back to summary |
|---|---|
| pack-priv void doInit() throws IOException Implements abstract org. | |
| isReadOnlyDatabase | back to summary |
|---|---|
| public boolean isReadOnlyDatabase() Overrides org. Implements org. Doc from org. Determine whether the database is read only. The database engine supports read-only databases, even in file systems that are writable.
| |
| newPersistentFile | back to summary |
|---|---|
| pack-priv StorageFile newPersistentFile(String path) Implements abstract org. Construct a persistent StorageFile from a path name.
| |
| newPersistentFile | back to summary |
|---|---|
| pack-priv StorageFile newPersistentFile(String directoryName, String fileName) Implements abstract org. Construct a persistent StorageFile from a directory and path name.
| |
| newPersistentFile | back to summary |
|---|---|
| pack-priv StorageFile newPersistentFile(StorageFile directoryName, String fileName) Implements abstract org. Construct a persistent StorageFile from a directory and path name.
| |
| newStorageFile | back to summary |
|---|---|
| public final StorageFile newStorageFile(String path) Overrides org. Implements org. Construct a StorageFile from a path name.
| |
| newStorageFile | back to summary |
|---|---|
| public final StorageFile newStorageFile(String directoryName, String fileName) Overrides org. Implements org. Construct a StorageFile from a directory and file name.
| |
| newStorageFile | back to summary |
|---|---|
| public final StorageFile newStorageFile(StorageFile directoryName, String fileName) Overrides org. Implements org. Construct a StorageFile from a directory and file name.
| |
| supportsRandomAccess | back to summary |
|---|---|
| public boolean supportsRandomAccess() Overrides org. Implements org. Determine whether the storage supports random access. If random access is not supported then it will only be accessed using InputStreams and OutputStreams (if the database is writable).
| |
| supportsWriteSync | back to summary |
|---|---|
| public boolean supportsWriteSync() Implements org. This method tests whether the "rws" and "rwd" modes are implemented. If the "rws" and "rwd" modes are supported then the database engine will conclude that the write methods of "rws"/"rwd" mode StorageRandomAccessFiles are slow but the sync method is fast and optimize accordingly.
| |
| sync | back to summary |
|---|---|
| public void sync(OutputStream stream, boolean metaData) throws IOException, SyncFailedException Implements org. Force the data of an output stream out to the underlying storage. That is, ensure that it has been made persistent. If the database is to be transient, that is, if the database does not survive a restart, then the sync method implementation need not do anything.
| |