|
||||||||||
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 com.sentilla.io.RandomAccessFile |
create(int filename)
Create a new file. |
abstract com.sentilla.io.RandomAccessFile |
createFile(int filename)
Create a new file. |
static com.sentilla.io.RandomAccessFile |
open(int filename)
Open an existing file. |
abstract com.sentilla.io.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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileDriver()
Method Detail |
---|
public abstract com.sentilla.io.RandomAccessFile openFile(int filename)
filename
- the 32-bit filename to open
com.sentilla.io.IORuntimeException
- if the file does not existpublic abstract com.sentilla.io.RandomAccessFile createFile(int filename)
filename
- the 32-bit filename to create
com.sentilla.io.IORuntimeException
- if the file cannot be createdpublic abstract void removeFile(int filename)
filename
- the 32-bit filename to remove
com.sentilla.io.IORuntimeException
- if the file cannot be removedpublic static com.sentilla.io.RandomAccessFile open(int filename)
The "file" system driver is used.
filename
- the 32-bit filename to open
com.sentilla.io.IORuntimeException
- if the file does not existpublic static com.sentilla.io.RandomAccessFile create(int filename)
The "file" system driver is used.
filename
- the 32-bit filename to create
com.sentilla.io.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
com.sentilla.io.IORuntimeException
- if the file cannot be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |