Example usage for Java java.nio.channels SeekableByteChannel fields, constructors, methods, implement or subclass
The text is from its open source code.
void | close() Closes this channel. |
boolean | isOpen() Tells whether or not this channel is open. |
long | position() Returns this channel's position. |
SeekableByteChannel | position(long newPosition) Sets this channel's position. |
int | read(ByteBuffer dst) Reads a sequence of bytes from this channel into the given buffer. |
long | size() Returns the current size of entity to which this channel is connected. |
SeekableByteChannel | truncate(long size) Truncates the entity, to which this channel is connected, to the given size. |
int | write(ByteBuffer src) Writes a sequence of bytes to this channel from the given buffer. |