org.axiondb.util
Class BufferedRandomAccessFile
java.lang.Object
java.io.RandomAccessFile
org.axiondb.util.BufferedRandomAccessFile
- All Implemented Interfaces:
- Closeable, DataInput, DataOutput
public class BufferedRandomAccessFile
- extends RandomAccessFile
A buffered extension of RandomAccessFile
.
- Version:
- $Revision: 1.9 $ $Date: 2004/09/09 23:47:45 $
Methods inherited from class java.io.RandomAccessFile |
close, getChannel, getFD, length, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, 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 |
BufferedRandomAccessFile
public BufferedRandomAccessFile(File file,
String mode)
throws FileNotFoundException
- Throws:
FileNotFoundException
- See Also:
RandomAccessFile.RandomAccessFile(java.io.File,java.lang.String)
BufferedRandomAccessFile
public BufferedRandomAccessFile(File file,
String mode,
int size)
throws FileNotFoundException
- Parameters:
size
- buffer size in bytes
- Throws:
FileNotFoundException
- See Also:
RandomAccessFile.RandomAccessFile(java.io.File,java.lang.String)
BufferedRandomAccessFile
public BufferedRandomAccessFile(String filename,
String mode)
throws FileNotFoundException
- Throws:
FileNotFoundException
- See Also:
RandomAccessFile.RandomAccessFile(java.lang.String,java.lang.String)
BufferedRandomAccessFile
public BufferedRandomAccessFile(String filename,
String mode,
int size)
throws FileNotFoundException
- Parameters:
size
- buffer size in bytes
- Throws:
FileNotFoundException
- See Also:
RandomAccessFile.RandomAccessFile(java.lang.String,java.lang.String)
read
public int read()
throws IOException
- Overrides:
read
in class RandomAccessFile
- Throws:
IOException
- See Also:
RandomAccessFile.read()
read
public int read(byte[] bytes,
int offset,
int length)
throws IOException
- Overrides:
read
in class RandomAccessFile
- Throws:
IOException
- See Also:
RandomAccessFile.read(byte[],int,int)
seek
public void seek(long pos)
throws IOException
- Overrides:
seek
in class RandomAccessFile
- Throws:
IOException
- See Also:
RandomAccessFile.seek(long)
getFilePointer
public long getFilePointer()
throws IOException
- Overrides:
getFilePointer
in class RandomAccessFile
- Throws:
IOException
- See Also:
RandomAccessFile.getFilePointer()