Interface RandomAccessInput

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long length()
      The number of bytes in the file.
      byte readByte​(long pos)
      Reads a byte at the given position in the file
      int readInt​(long pos)
      Reads an integer (LE byte order) at the given position in the file
      long readLong​(long pos)
      Reads a long (LE byte order) at the given position in the file
      short readShort​(long pos)
      Reads a short (LE byte order) at the given position in the file
    • Method Detail

      • length

        long length()
        The number of bytes in the file.
      • readByte

        byte readByte​(long pos)
               throws java.io.IOException
        Reads a byte at the given position in the file
        Throws:
        java.io.IOException
        See Also:
        DataInput.readByte()
      • readShort

        short readShort​(long pos)
                 throws java.io.IOException
        Reads a short (LE byte order) at the given position in the file
        Throws:
        java.io.IOException
        See Also:
        DataInput.readShort(), BitUtil.VH_LE_SHORT
      • readInt

        int readInt​(long pos)
             throws java.io.IOException
        Reads an integer (LE byte order) at the given position in the file
        Throws:
        java.io.IOException
        See Also:
        DataInput.readInt(), BitUtil.VH_LE_INT
      • readLong

        long readLong​(long pos)
               throws java.io.IOException
        Reads a long (LE byte order) at the given position in the file
        Throws:
        java.io.IOException
        See Also:
        DataInput.readLong(), BitUtil.VH_LE_LONG