- buffers
- the array of byte buffers into which the bytes will be copied.
Documentation for this section has not yet been entered.
Type Reason Java.Nio.Channels.AsynchronousCloseException if this channel is closed by another thread during this read operation. Java.Nio.Channels.ClosedByInterruptException if the thread is interrupted by another thread during this read operation. Java.Nio.Channels.ClosedChannelException if this channel is closed. Java.IO.IOException if another I/O error occurs; details are in the message. Java.Nio.Channels.NonReadableChannelException if the channel has not been opened in a mode that permits reading.
Reads bytes from this file channel and stores them in the specified array of buffers. This method attempts to read as many bytes as can be stored in the buffer array from this channel and returns the number of bytes actually read. It also increases the file position by the number of bytes read.
If a read operation is in progress, subsequent threads will block until the read is completed and will then contend for the ability to read.
Calling this method is equivalent to calling read(buffers, 0, buffers.length);