org.jcodec.common
Interface SeekableByteChannel

All Superinterfaces:
ByteChannel, Channel, Closeable, ReadableByteChannel, WritableByteChannel
All Known Implementing Classes:
AutoFileChannelWrapper, ByteBufferSeekableByteChannel, FileChannelWrapper, FilePool.PoolChannel, SeekableByteChannelWrapper

public interface SeekableByteChannel
extends ByteChannel, Channel, Closeable, ReadableByteChannel, WritableByteChannel

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License

Author:
Jay Codec

Method Summary
 long position()
           
 SeekableByteChannel position(long newPosition)
           
 long size()
           
 SeekableByteChannel truncate(long size)
           
 
Methods inherited from interface java.nio.channels.ReadableByteChannel
read
 
Methods inherited from interface java.nio.channels.WritableByteChannel
write
 
Methods inherited from interface java.nio.channels.Channel
close, isOpen
 

Method Detail

position

long position()
              throws IOException
Throws:
IOException

position

SeekableByteChannel position(long newPosition)
                             throws IOException
Throws:
IOException

size

long size()
          throws IOException
Throws:
IOException

truncate

SeekableByteChannel truncate(long size)
                             throws IOException
Throws:
IOException


Copyright © 2013. All Rights Reserved.