Skip to main content
Package: com.phoenix_int.util Class Hierarchy

Declaration
Replacement for RandomAccessFile to use buffered I/O as much as possible. Mostly identical to java.io.RandomAccessFile API, or at least as close enough for what I needed. Note: This class is not threadsafe.

Field Summary

Constructor Summary

Method Summary

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

_wrapped

_filePos

_fileLen

_actualPos

_bufStart

_buffer

_writeOffset

_readOffset

Constructor Detail

BufferedRandomAccessFile

Parameters:
  • file - The file to open
  • mode - Same as for RandomAccessFile’s constructor
  • bufSize - How big to make the in-memory cache.
Throws:
  • java.io.IOException

Method Detail

length

Throws:
  • java.io.IOException

seek

close

Throws:
  • java.io.IOException

write

Throws:
  • java.io.IOException

write

Throws:
  • java.io.IOException

flush

Throws:
  • java.io.IOException

read

Throws:
  • java.io.IOException

read

Throws:
  • java.io.IOException

read

Throws:
  • java.io.IOException

_readBuf

Throws:
  • java.io.IOException