public interface GatheringByteChannel extends WritableByteChannel
Modifier and Type | Method and Description |
---|---|
long |
write(ByteBuffer[] srcs)
Writes a sequence of bytes to this channel from the given buffers
|
long |
write(ByteBuffer[] srcs,
int offset,
int length)
Writes a sequence of bytes to this channel from a subsequence of
the given buffers
|
write
long write(ByteBuffer[] srcs, int offset, int length) 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 closedIndexOutOfBoundsException
- If the preconditions on the offset
and length parameters do not holdIOException
- If an error occursNonWritableChannelException
- If this channel was not opened for
writinglong write(ByteBuffer[] srcs) 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