| java.lang.Object java.io.File org.apache.derby.impl.io.DirFile org.apache.derby.impl.io.DirFile4
DirFile4 | class DirFile4 extends DirFile (Code) | | This class implements the StorageFile interface using features of Java 1.4 not available in earlier
versions of Java.
|
Constructor Summary | |
| DirFile4(String path, boolean rwsOK) Construct a DirFile from a path name. | | DirFile4(String directoryName, String fileName, boolean rwsOK) Construct a DirFile from a directory name and a file name. | | DirFile4(DirFile directoryName, String fileName, boolean rwsOK) Construct a DirFile from a directory name and a file name. |
DirFile4 | DirFile4(String path, boolean rwsOK)(Code) | | Construct a DirFile from a path name.
Parameters: path - The path name. |
DirFile4 | DirFile4(String directoryName, String fileName, boolean rwsOK)(Code) | | Construct a DirFile from a directory name and a file name.
Parameters: directoryName - The directory part of the path name. Parameters: fileName - The name of the file within the directory. |
DirFile4 | DirFile4(DirFile directoryName, String fileName, boolean rwsOK)(Code) | | Construct a DirFile from a directory name and a file name.
Parameters: directoryName - The directory part of the path name. Parameters: fileName - The name of the file within the directory. |
getExclusiveFileLock | public synchronized int getExclusiveFileLock()(Code) | | |
getOutputStream | public OutputStream getOutputStream(boolean append) throws FileNotFoundException(Code) | | Creates an output stream from a file name.
Parameters: append - If true then data will be appended to the end of the file, if it already exists.If false and a normal file already exists with this name the file will first be truncatedto zero length. an output stream suitable for writing to the file. exception: FileNotFoundException - if the file exists but is a directoryrather than a regular file, does not exist but cannot be created, orcannot be opened for any other reason. |
getParentDir | public StorageFile getParentDir()(Code) | | Get the name of the parent directory if this name includes a parent.
An StorageFile denoting the parent directory of this StorageFile, if it has a parent, null ifit does not have a parent. |
getRandomAccessFile | public StorageRandomAccessFile getRandomAccessFile(String mode) throws FileNotFoundException(Code) | | Get a random access (read/write) file.
Parameters: mode - "r", "rw", "rws", or "rwd". The "rws" and "rwd" modes specifythat the data is to be written to persistent store, consistent with thejava.io.RandomAccessFile class ("synchronized" with the persistentstorage, in the file system meaning of the word "synchronized"). Howeverthe implementation is not required to implement the "rws" or "rwd"modes. The implementation may treat "rws" and "rwd" as "rw". It is up tothe user of this interface to call the StorageRandomAccessFile.syncmethod. If the "rws" or "rwd" modes are supported and theRandomAccessFile was opened in "rws" or "rwd" mode then theimplementation of StorageRandomAccessFile.sync need not do anything. an object that can be used for random access to the file. exception: IllegalArgumentException - if the mode argument is not equal to one of "r", "rw", "rws", or "rwd". exception: FileNotFoundException - if the file exists but is a directory rather than a regularfile, or cannot be opened or created for any other reason . |
releaseExclusiveFileLock | public synchronized void releaseExclusiveFileLock()(Code) | | |
|
|