Module java.base

Interface ReadableByteChannel

All Superinterfaces:
AutoCloseable, Channel, Closeable
All Known Subinterfaces:
ByteChannel, ScatteringByteChannel, SeekableByteChannel
All Known Implementing Classes:
DatagramChannel, FileChannel, Pipe.SourceChannel, SocketChannel

public interface ReadableByteChannel extends Channel
A channel that can read bytes.

Only one read operation upon a readable channel may be in progress at any given time. If one thread initiates a read operation upon a channel then any other thread that attempts to initiate another read operation will block until the first operation is complete. Whether or not other kinds of I/O operations may proceed concurrently with a read operation depends upon the type of the channel.

Since:
1.4