- buffer
- the byte array in which to store the bytes read.
Documentation for this section has not yet been entered.
Type Reason Java.IO.IOException if this file is closed or another I/O error occurs.
Reads bytes from the current position in this file and stores them in the byte array buffer. The maximum number of bytes read corresponds to the size of buffer. Blocks until at least one byte has been read, the end of the file is detected, or an exception is thrown. Returns the number of bytes actually read or -1 if the end of the file has been reached. See also RandomAccessFile.ReadFully(Byte[]).