@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.
构造器和说明 |
---|
FSDataInputStream() |
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–2022 The Apache Software Foundation. All rights reserved.