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
IOException
long getPos() throws IOException
IOException
boolean seekToNewSource(long targetPos) throws IOException
IOException
Copyright © 2009 The Apache Software Foundation