readBytes
byte[] readBytes(long startByte,
long length)
throws java.io.IOException
Reads at most length bytes starting at byte offset startByte from start of file.
Byte 0 is the first byte in the file.
StartByte must be such that, 0 less or equal than, startByte less than file.size or an exception should be raised.
- Parameters:
startByte - the offset from which the file will start reading from
length - the size that the byte-array will have
- Returns:
- the byte array that the random access file readBytes from the volume
- Throws:
java.io.IOException - is thrown when an error happens during the reading of the RAF