public interface Seekable
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getPos()
Return the current offset from the start of the file
|
void |
seek(long pos)
Seek to the given offset from the start of the file.
|
boolean |
seekToNewSource(long targetPos)
Seeks a different copy of the data.
|
void seek(long pos)
throws IOException
IOExceptionlong getPos()
throws IOException
IOExceptionboolean seekToNewSource(long targetPos)
throws IOException
IOExceptionCopyright © 2009 The Apache Software Foundation