java.io.Closeable, java.io.DataInput, java.io.DataOutput, java.lang.AutoCloseable, StorageRandomAccessFileclass DirRandomAccessFile extends java.io.RandomAccessFile implements StorageRandomAccessFile
| Modifier and Type | Field | Description |
|---|---|---|
private java.lang.String |
_mode |
|
private java.io.File |
_name |
| Constructor | Description |
|---|---|
DirRandomAccessFile(java.io.File name,
java.lang.String mode) |
Construct a StorageRandomAccessFileImpl.
|
| Modifier and Type | Method | Description |
|---|---|---|
DirRandomAccessFile |
clone() |
Clone this file abstaction
|
void |
sync() |
Force any changes out to the persistent store.
|
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipByteswrite, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, 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, writeUTFclose, getFilePointer, length, read, seek, setLengthDirRandomAccessFile(java.io.File name,
java.lang.String mode)
throws java.io.FileNotFoundException
name - The file name.mode - The file open mode: "r", "rw", "rws", or "rwd". The "rws" and "rwd" modes specify that the file is to
be synchronized, consistent with the java.io.RandomAccessFile class. However the
StorageRandomAccessFile.sync() method will be called even if the file was opened
in "rws" or "rwd" mode. If the "rws" or "rwd" modes are supported then the implementation
of StorageRandomAccessFile.sync need not do anything.java.lang.IllegalArgumentException - if the mode argument is not equal to one of "r", "rw".java.io.FileNotFoundException - if the file exists but is a directory rather than a regular
file, or cannot be opened or created for any other reason .public DirRandomAccessFile clone()
clone in interface StorageRandomAccessFileclone in class java.lang.Objectpublic void sync()
throws java.io.IOException
sync in interface StorageRandomAccessFilejava.io.IOException - If an IO error occurs.Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.