BlockDecompressorStream, BufferedFSInputStream, CompressionInputStream, CryptoFSDataInputStream, CryptoInputStream, DecompressorStream, FSDataInputStream, FSInputChecker, FSInputStream, FTPInputStream, PassthroughCodec.PassthroughDecompressorStream, SplitCompressionInputStream@Public
@Evolving
public interface Seekable
| Modifier and Type | Method | Description |
|---|---|---|
long |
getPos() |
Return the current offset from the start of the file
|
void |
seek(long pos) |
Seek to the given offset from the start of the file.
|
boolean |
seekToNewSource(long targetPos) |
Seeks a different copy of the data.
|
void seek(long pos) throws java.io.IOException
pos - offset from the start of the file.java.io.IOException - raised on errors performing I/O.long getPos()
throws java.io.IOException
java.io.IOException - raised on errors performing I/O.@Private
boolean seekToNewSource(long targetPos)
throws java.io.IOException
targetPos - target position.java.io.IOException - raised on errors performing I/O.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.