public interface SeekableSource
extends java.io.Closeable
RandomAccessFile.| Modifier and Type | Method and Description |
|---|---|
int |
read(java.nio.ByteBuffer bb)
Reads up to
Buffer.remaining() bytes from the source,
returning the number of bytes read, or -1 if no bytes were read
and EOF was reached. |
void |
seek(long pos)
Sets the position for the next
read(ByteBuffer). |
void seek(long pos) throws java.io.IOException
read(ByteBuffer).java.io.IOExceptionint read(java.nio.ByteBuffer bb) throws java.io.IOException
Buffer.remaining() bytes from the source,
returning the number of bytes read, or -1 if no bytes were read
and EOF was reached.java.io.IOException