public class CompressibleFSDataInputStream extends FSDataInputStream
FSDataInputStream
that delegates all reading operations to a wrapping StreamCompressionDecorator
.Constructor and Description |
---|
CompressibleFSDataInputStream(FSDataInputStream delegate,
StreamCompressionDecorator compressionDecorator) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
getPos()
Gets the current position in the input stream.
|
int |
read() |
void |
seek(long desired)
Seek to the given offset from the start of the file.
|
available, mark, markSupported, read, read, reset, skip
public CompressibleFSDataInputStream(FSDataInputStream delegate, StreamCompressionDecorator compressionDecorator) throws IOException
IOException
public void seek(long desired) throws IOException
FSDataInputStream
seek
in class FSDataInputStream
desired
- the desired offsetIOException
- Thrown if an error occurred while seeking inside the input stream.public long getPos() throws IOException
FSDataInputStream
getPos
in class FSDataInputStream
IOException
- Thrown if an I/O error occurred in the underlying stream implementation
while accessing the stream's position.public int read() throws IOException
read
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.