public interface WritableByteChannel extends Channel
| Modifier and Type | Method and Description |
|---|---|
int |
write(ByteBuffer src)
Writes a sequence of bytes to this channel from the given buffer
|
int write(ByteBuffer src) throws IOException
AsynchronousCloseException - If another thread closes this
channel while the write operation is in progressClosedByInterruptException - 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 statusClosedChannelException - If this channel is closedIOException - If an error occursNonWritableChannelException - If this channel was not opened for
writing