- position
- the non-negative position to begin.
- count
- the non-negative number of bytes to transfer.
- target
- the target channel to write to.
Documentation for this section has not yet been entered.
Type Reason Java.Lang.IllegalArgumentException if the parameters are invalid. Java.Nio.Channels.NonReadableChannelException if this channel is not readable. Java.Nio.Channels.NonWritableChannelException if the target 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 this channel's file starting at position and writes them to target. No bytes are transferred if position is larger than the size of this channel's file. Less than count bytes are transferred if there less bytes available from this channel's file or if the target channel is non-blocking and has less than count bytes free in its input buffer.
Note that this channel's position is not modified.