Class BufferedRandomAccessFile

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class BufferedRandomAccessFile
    extends InputStream
    In core Java, you have the choice between: - RandomAccessFile: random access but slow (unbuffered) - BufferedInputStream/Reader: fast (buffered) but no random access Sadly, both are incompatible and there is no meaningful way to combine them. This is the reason of this BufferedRandomAccessFile. To provide random access along with fast read capabilities thanks to buffering.
    Author:
    dagnelies