public class CompressedInputStream
extends java.io.InputStream
CompressionInfo
.Modifier and Type | Field and Description |
---|---|
protected long |
bufferOffset |
protected java.io.IOException |
readException |
protected int |
validBufferBytes |
Constructor and Description |
---|
CompressedInputStream(java.io.InputStream source,
CompressionInfo info,
ChecksumType checksumType,
java.util.function.Supplier<java.lang.Double> crcCheckChanceSupplier) |
Modifier and Type | Method and Description |
---|---|
long |
getTotalCompressedBytesRead() |
void |
position(long position) |
int |
read() |
protected long bufferOffset
protected int validBufferBytes
protected volatile java.io.IOException readException
public CompressedInputStream(java.io.InputStream source, CompressionInfo info, ChecksumType checksumType, java.util.function.Supplier<java.lang.Double> crcCheckChanceSupplier)
source
- Input source to read compressed data frominfo
- Compression infoCopyright © 2019 The Apache Software Foundation