public abstract class SeekableInputStream
extends java.io.InputStream
SeekableInputStream
is an interface with the methods needed to read data from a file or
Hadoop data stream.
This class is based on Parquet's SeekableInputStream.Constructor and Description |
---|
SeekableInputStream() |
Modifier and Type | Method and Description |
---|---|
abstract long |
getPos()
Return the current position in the InputStream.
|
abstract void |
seek(long newPos)
Seek to a new position in the InputStream.
|
public abstract long getPos() throws java.io.IOException
java.io.IOException
- If the underlying stream throws IOExceptionpublic abstract void seek(long newPos) throws java.io.IOException
newPos
- the new position to seek tojava.io.IOException
- If the underlying stream throws IOException