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.
The file position at which the transfer is to begin; must be non-negative
Reads data from this channel as a Chunk
.
Reads data from this channel as a Chunk
.
Fails with java.io.EOFException
if end-of-stream is reached.
The file position at which the transfer is to begin; must be non-negative
A sink that will write all the bytes it receives to this channel.
A sink that will write all the bytes it receives to this channel. The sink's result is the number of bytes written.
The position in the file the sink will write to.
Optional, overrides how to construct the buffer used to transfer bytes received by the sink to this channel. By default a heap buffer is used, but a direct buffer will usually perform better.
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.
The position in the file the stream will read from.
Optional, overrides how to construct the buffer used to transfer bytes read from this channel into the stream. By default a heap buffer is used, but a direct buffer will usually perform better.
Writes a chunk of bytes at a specified position in the file.
Writes a chunk of bytes at a specified position in the file.
More than one write operation may be performed to write the entire chunk.
The bytes to write.
Where in the file to write.