Java java.nio.channels SeekableByteChannel fields, constructors, methods, implement or subclass

Example usage for Java java.nio.channels SeekableByteChannel fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.nio.channels SeekableByteChannel.

The text is from its open source code.

Implementation

java.nio.channels.SeekableByteChannel has the following implementations.
Click this link to see all its implementation.

Method

voidclose()
Closes this channel.
booleanisOpen()
Tells whether or not this channel is open.
longposition()
Returns this channel's position.
SeekableByteChannelposition(long newPosition)
Sets this channel's position.
intread(ByteBuffer dst)
Reads a sequence of bytes from this channel into the given buffer.
longsize()
Returns the current size of entity to which this channel is connected.
SeekableByteChanneltruncate(long size)
Truncates the entity, to which this channel is connected, to the given size.
intwrite(ByteBuffer src)
Writes a sequence of bytes to this channel from the given buffer.