|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sentilla.system.DriverAdapter
com.sentilla.system.FileDriver
public abstract class FileDriver
Provides open, create, and remove operations for files. The
file system uses integers for filenames and returns RandomAccessFile
interfaces for data access. "file" is used as the default driver name.
Field Summary |
---|
Fields inherited from class com.sentilla.system.DriverAdapter |
---|
m_nextDriver |
Constructor Summary | |
---|---|
FileDriver()
|
Method Summary | |
---|---|
static RandomAccessFile |
create(int filename)
Create a new file. |
abstract RandomAccessFile |
createFile(int filename)
Create a new file. |
static RandomAccessFile |
open(int filename)
Open an existing file. |
abstract RandomAccessFile |
openFile(int filename)
Open an existing file. |
static void |
remove(int filename)
Remove a file. |
abstract void |
removeFile(int filename)
Remove a file. |
Methods inherited from class com.sentilla.system.DriverAdapter |
---|
getDriverName, getNextDriver, setNextDriver |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileDriver()
Method Detail |
---|
public abstract RandomAccessFile openFile(int filename)
filename
- the 32-bit filename to open
IORuntimeException
- if the file does not existpublic abstract RandomAccessFile createFile(int filename)
filename
- the 32-bit filename to create
IORuntimeException
- if the file cannot be createdpublic abstract void removeFile(int filename)
filename
- the 32-bit filename to remove
IORuntimeException
- if the file cannot be removedpublic static RandomAccessFile open(int filename)
The "file" system driver is used.
filename
- the 32-bit filename to open
IORuntimeException
- if the file does not existpublic static RandomAccessFile create(int filename)
The "file" system driver is used.
filename
- the 32-bit filename to create
IORuntimeException
- if the file cannot be createdpublic static void remove(int filename)
The "file" system driver is used.
filename
- the 32-bit filename to remove
IORuntimeException
- if the file cannot be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |