GatheringByteChannelpublic interface GatheringByteChannel implements WritableByteChannelThe interface for channels that can write a set of buffers in a single
operation. The corresponding interface for read operations is
{@link ScatteringByteChannel}. |
Methods Summary |
---|
public long | write(java.nio.ByteBuffer[] buffers)Writes bytes from all the given buffers to a channel.
This method is equivalent to: {@code write(buffers, 0, buffers.length);}
| public long | write(java.nio.ByteBuffer[] buffers, int offset, int length)Writes bytes from a subset of the specified array of buffers to a
channel. The subset is defined by {@code offset} and {@code length},
indicating the first buffer and the number of buffers to use.
If a write operation is in progress, subsequent threads will block until
the write is completed and then contend for the ability to write.
|
|