java.nio.channels.SeekableByteChannel Maven / Gradle / Ivy
package java.nio.channels;
import java.io.IOException;
import java.nio.ByteBuffer;
public interface SeekableByteChannel extends ByteChannel {
int read(ByteBuffer dst) throws IOException;
int write(ByteBuffer src) throws IOException;
long position() throws IOException;
SeekableByteChannel position(long newPosition) throws IOException;
long size() throws IOException;
SeekableByteChannel truncate(long size) throws IOException;
}