Closes this channel.
Closes this channel.
Tells whether or not this channel is open.
Tells whether or not this channel is open.
Reads data from this channel into buffer, returning the number of bytes read.
Reads data from this channel into buffer, returning the number of bytes read.
Fails with java.io.EOFException
if end-of-stream is reached.
A sink that will write all the bytes it receives to this channel.
A ZStream
that reads from this channel.
A ZStream
that reads from this channel. The stream terminates without error if the channel reaches end-of-stream.
Optional, overrides how to construct the buffer used to transfer bytes read from this channel into the stream.
Writes data into this channel from buffer, returning the number of bytes written.
Writes a chunk of bytes to this channel.
Writes a chunk of bytes to this channel.
More than one write operation may be performed to write out the entire chunk.
A byte channel that reads and writes asynchronously.
The read and write operations will never block the calling thread.