public class DatabaseFile
extends java.io.RandomAccessFile
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
READ
Constant signifying read access to a file
|
static java.lang.String |
READ_WRITE
Constant signifying read/write access to a file.
|
| Constructor and Description |
|---|
DatabaseFile(java.lang.String filename,
java.lang.String mode)
Constructs a new DatabaseFile instance.
|
close, getChannel, getFD, getFilePointer, length, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seek, setLength, skipBytes, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFpublic static final java.lang.String READ
public static final java.lang.String READ_WRITE
public DatabaseFile(java.lang.String filename,
java.lang.String mode)
throws java.io.FileNotFoundException
filename - the name of the file.mode - the mode in which the file is to be opened.java.io.FileNotFoundException - thrown whenever the file is not
found.