| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract long | |
| public abstract long | |
| public abstract void | seek(long
new read position in the stream pos)Seeks to the specified absolute position in the stream. |
| public long | Returns: 0 if n is negative,
less than n if skipping n
bytes would seek past the end of the file,
n otherwisethe number of bytes to be skipped. n)Overrides java. n bytes forward in this stream.
|
| SeekableInputStream | back to summary |
|---|---|
| public SeekableInputStream() | |
| length | back to summary |
|---|---|
| public abstract long length() throws IOException Gets the size of the stream. | |
| position | back to summary |
|---|---|
| public abstract long position() throws IOException Gets the current position in the stream. | |
| seek | back to summary |
|---|---|
| public abstract void seek(long pos) throws IOException Seeks to the specified absolute position in the stream.
Seeking past the end of the file should be supported by the subclasses
unless there is a good reason to do otherwise. If one has seeked
past the end of the stream,
| |
| skip | back to summary |
|---|---|
| public long skip(long n) throws IOException Overrides java. Seeks
This will not seek past the end of the file. If the current position
is already at or past the end of the file, this doesn't seek at all
and returns
If
| |