public interface SeekableSource extends Closeable
RandomAccessFile
.Modifier and Type | Method and Description |
---|---|
int |
read(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 IOException
read(ByteBuffer)
.IOException
int read(ByteBuffer bb) throws IOException
Buffer.remaining()
bytes from the source,
returning the number of bytes read, or -1 if no bytes were read
and EOF was reached.IOException