Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.impl.io
Class DirRandomAccessFile  view DirRandomAccessFile download DirRandomAccessFile.java

java.lang.Object
  extended byjava.io.RandomAccessFile
      extended byorg.apache.derby.impl.io.DirRandomAccessFile
All Implemented Interfaces:
java.io.DataInput, java.io.DataOutput, org.apache.derby.io.StorageRandomAccessFile
Direct Known Subclasses:
DirRandomAccessFile4

class DirRandomAccessFile
extends java.io.RandomAccessFile
implements org.apache.derby.io.StorageRandomAccessFile

This class provides a disk based implementation of the StIRandomAccess File interface. It is used by the database engine to access persistent data and transaction logs under the directory (default) subsubprotocol.


Field Summary
 
Fields inherited from class java.io.RandomAccessFile
 
Constructor Summary
(package private) DirRandomAccessFile(java.io.File name, java.lang.String mode)
          Construct a StorageRandomAccessFileImpl.
 
Method Summary
 void sync(boolean metaData)
          Force any changes out to the persistent store.
 
Methods inherited from class java.io.RandomAccessFile
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, writeUTF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.derby.io.StorageRandomAccessFile
close, getFilePointer, length, seek, setLength
 
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
 
Methods inherited from interface java.io.DataOutput
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 

Constructor Detail

DirRandomAccessFile

DirRandomAccessFile(java.io.File name,
                    java.lang.String mode)
              throws java.io.FileNotFoundException
Construct a StorageRandomAccessFileImpl.

Method Detail

sync

public void sync(boolean metaData)
          throws java.io.IOException
Force any changes out to the persistent store.

Specified by:
sync in interface org.apache.derby.io.StorageRandomAccessFile