Package mgui.io.util

Class BufferedRandomAccessFile

java.lang.Object
mgui.io.util.BufferedRandomAccessFile

public class BufferedRandomAccessFile
extends java.lang.Object
Buffered version of RandomAccessFile.
Version:
1.0
Author:
Andrew Reid
  • Field Summary

    Fields
    Modifier and Type Field Description
    int buffer_size  
  • Constructor Summary

    Constructors
    Constructor Description
    BufferedRandomAccessFile​(java.io.RandomAccessFile raf)  
    BufferedRandomAccessFile​(java.io.RandomAccessFile raf, int buffer_size, java.nio.ByteOrder byte_order, long start)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    boolean isEOF()  
    long position()  
    void position​(long p)  
    int read()  
    char readChar()  
    double readDouble()  
    float readFloat()  
    int readInt()  
    long readLong()  
    float readShort()  
    void skip​(int skip)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • buffer_size

      public int buffer_size
  • Constructor Details

    • BufferedRandomAccessFile

      public BufferedRandomAccessFile​(java.io.RandomAccessFile raf)
    • BufferedRandomAccessFile

      public BufferedRandomAccessFile​(java.io.RandomAccessFile raf, int buffer_size, java.nio.ByteOrder byte_order, long start)
  • Method Details

    • readInt

      public int readInt() throws java.io.IOException, java.io.EOFException
      Throws:
      java.io.IOException
      java.io.EOFException
    • readLong

      public long readLong() throws java.io.IOException, java.io.EOFException
      Throws:
      java.io.IOException
      java.io.EOFException
    • read

      public int read() throws java.io.IOException, java.io.EOFException
      Throws:
      java.io.IOException
      java.io.EOFException
    • readFloat

      public float readFloat() throws java.io.IOException, java.io.EOFException
      Throws:
      java.io.IOException
      java.io.EOFException
    • readDouble

      public double readDouble() throws java.io.IOException, java.io.EOFException
      Throws:
      java.io.IOException
      java.io.EOFException
    • readShort

      public float readShort() throws java.io.IOException, java.io.EOFException
      Throws:
      java.io.IOException
      java.io.EOFException
    • readChar

      public char readChar() throws java.io.IOException, java.io.EOFException
      Throws:
      java.io.IOException
      java.io.EOFException
    • isEOF

      public boolean isEOF()
    • position

      public void position​(long p) throws java.io.IOException
      Throws:
      java.io.IOException
    • skip

      public void skip​(int skip) throws java.io.IOException
      Throws:
      java.io.IOException
    • position

      public long position()
    • close

      public void close() throws java.io.IOException
      Throws:
      java.io.IOException