| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SeekableSource
For sources of random-access data, such as RandomAccessFile.
| Method Summary | |
|---|---|
|  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). | 
| Methods inherited from interface java.io.Closeable | 
|---|
| close | 
| Method Detail | 
|---|
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| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||