public abstract class FSDataInputStream
extends java.io.InputStream
FileSystem
.
This extends the InputStream
with methods for accessing
the stream's current position
and
seeking
to a desired position.
Constructor and Description |
---|
FSDataInputStream() |
Modifier and Type | Method and Description |
---|---|
abstract long |
getPos()
Gets the current position in the input stream.
|
abstract java.io.Reader |
getReader() |
abstract void |
seek(long desired)
Seek to the given offset from the start of the file.
|
public abstract void seek(long desired) throws java.io.IOException
desired
- the desired offsetjava.io.IOException
- Thrown if an error occurred while seeking inside the input stream.public abstract long getPos() throws java.io.IOException
java.io.IOException
- Thrown if an I/O error occurred in the underlying stream
implementation while accessing the stream's position.public abstract java.io.Reader getReader() throws java.io.FileNotFoundException
java.io.FileNotFoundException