/** * Reads the specified number of bytes from a given position within a * stream. This does not change the current offset of the stream and is * thread-safe. * * @param position the offset from the start of the stream. * @param buffer the buffer into which the data is read. * @throws IOException if an I/O error occurs. */ public void readFully(long position, byte[] buffer) throws IOException { readFully(position, buffer, 0, buffer.length); }