Interface RandomAccessData

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()  
      long getCurrentOffset()
      Returns the current offset within this data.
      long getLength()
      Returns the length of the data in bytes.
      boolean isClosed()
      Returns true, if the data source was closed before.
      void readBytes​(byte[] buffer, int offset, int length)
      Reads an array of bytes of the given length from this data source into the given buffer at the given offset.
      byte[] readBytes​(int length)
      Reads an array of bytes of the given length from this data source.
      int readUnsignedByte()
      Reads an unsigned eight bit number from this data.
      void setCurrentOffset​(long offset)
      Sets the current offset within this data.