Writes a sequence of bytes to this channel from the given buffer, starting at the given file position.
This method works in the same manner as the
write(ByteBuffer) method, except that bytes are written starting at
the given file position rather than at the channel's current position.
This method does not modify this channel's position. If the given
position is greater than the file's current size then the file will be
grown to accommodate the new bytes; the values of any bytes between the
previous end-of-file and the newly-written bytes are unspecified.
|The buffer from which bytes are to be transferred|
|The file position at which the transfer is to begin; must be non-negative|
|If the position is negative|
|If this channel was not opened for writing|
|If this channel is closed|
|If another thread closes this channel while the write operation is in progress|
|If another thread interrupts the current thread while the write operation is in progress, thereby closing the channel and setting the current thread's interrupt status|
|If some other I/O error occurs|