public abstract interface GatheringByteChannel
  Comment     Returned-by     Constructor-argument     Method-argument     Field-type     Type-bound     Links  

A channel that can write bytes from a sequence of buffers.

A gathering write operation writes, in a single invocation, a sequence of bytes from one or more of a given sequence of buffers. Gathering writes are often useful when implementing network protocols or file formats that, for example, group data into segments consisting of one or more fixed-length headers followed by a variable-length body. Similar scattering read operations are defined in the ScatteringByteChannel interface.

extends WritableByteChannel

Since:  1.4