@Public public abstract class FSDataInputStream extends 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 void |
seek(long desired)
Seek to the given offset from the start of the file.
|
available, close, mark, markSupported, read, read, read, reset, skip
public abstract void seek(long desired) throws IOException
desired
- the desired offsetIOException
- Thrown if an error occurred while seeking inside the input stream.public abstract long getPos() throws IOException
IOException
- Thrown if an I/O error occurred in the underlying stream implementation
while accessing the stream's position.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.