package org.jcodec.common.io; import java.io.Closeable; import java.io.IOException; import java.nio.channels.ByteChannel; import java.nio.channels.Channel; import java.nio.channels.ReadableByteChannel; import java.nio.channels.WritableByteChannel; /** * This class is part of JCodec ( www.jcodec.org ) This software is distributed * under FreeBSD License * * @author The JCodec project * */ public interface SeekableByteChannel extends ByteChannel, Channel, Closeable, ReadableByteChannel, WritableByteChannel { long position() throws IOException; SeekableByteChannel setPosition(long newPosition) throws IOException; long size() throws IOException; SeekableByteChannel truncate(long size) throws IOException; }