public interface Seekable
Modifier and Type | Method and Description |
---|---|
void |
seek(long pos)
Moves the starting read position of the stream to the specified position which is relative to
the start of the stream.
|
void seek(long pos) throws IOException
pos
- The position to seek to, it must be between 0 and the end of the stream - 1.IOException
- if the seek fails due to an error accessing the stream at the positionCopyright © 2015. All Rights Reserved.