public abstract long write (ByteBuffer[] srcs) throws IOException

Writes a sequence of bytes to this channel from the given buffers.

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

 c.write(srcs, 0, srcs.length);

Parameters:
srcs     The buffers from which bytes are to be retrieved

Returns:  The number of bytes written, possibly zero

Exceptions:
NonWritableChannelException     If this channel was not opened for writing
ClosedChannelException     If this channel is closed
AsynchronousCloseException     If another thread closes this channel while the write operation is in progress
ClosedByInterruptException     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
IOException     If some other I/O error occurs