public interface ScatteringByteChannel extends ReadableByteChannel
| Modifier and Type | Method and Description |
|---|---|
long |
read(java.nio.ByteBuffer[] srcs)
Reads a sequence of bytes from this channel into the given buffers
|
long |
read(java.nio.ByteBuffer[] srcs,
int offset,
int length)
Reads a sequence of bytes from this channel into a subsequence of the
given buffers
|
readlong read(java.nio.ByteBuffer[] srcs, int offset, int length) throws java.io.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 closedjava.lang.IndexOutOfBoundsException - If the preconditions on the offset
and length parameters do not holdjava.io.IOException - If an error occursNonReadableChannelException - If this channel was not opened for
readinglong read(java.nio.ByteBuffer[] srcs) throws java.io.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 closedjava.io.IOException - If an error occursNonReadableChannelException - If this channel was not opened for
reading