- src
- the source channel to read bytes from.
- position
- the non-negative start position.
- count
- the non-negative number of bytes to transfer.
Documentation for this section has not yet been entered.
Type Reason Java.Lang.IllegalArgumentException if the parameters are invalid. Java.Nio.Channels.NonReadableChannelException if the source channel is not readable. Java.Nio.Channels.NonWritableChannelException if this channel is not writable. Java.Nio.Channels.ClosedChannelException if either channel has already been closed. Java.Nio.Channels.AsynchronousCloseException if either channel is closed by other threads during this operation. Java.Nio.Channels.ClosedByInterruptException if the thread is interrupted during this operation. Java.IO.IOException if any I/O error occurs.
Reads up to count bytes from src and stores them in this channel's file starting at position. No bytes are transferred if position is larger than the size of this channel's file. Less than count bytes are transferred if there are less bytes remaining in the source channel or if the source channel is non-blocking and has less than count bytes immediately available in its output buffer.
Note that this channel's position is not modified.