public abstract long read (ByteBuffer[] dsts) throws IOException

Reads a sequence of bytes from this channel into the given buffers.

An invocation of this method of the form c.read(dsts) behaves in exactly the same manner as the invocation

 c.read(dsts, 0, dsts.length);

Parameters:
dsts     The buffers into which bytes are to be transferred

Returns:  The number of bytes read, possibly zero, or -1 if the channel has reached end-of-stream

Exceptions:
NonReadableChannelException     If this channel was not opened for reading
ClosedChannelException     If this channel is closed
AsynchronousCloseException     If another thread closes this channel while the read operation is in progress
ClosedByInterruptException     If another thread interrupts the current thread while the read operation is in progress, thereby closing the channel and setting the current thread's interrupt status
IOException     If some other I/O error occurs