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() | 
| int | read(byte[] b,
    int off,
    int len) | 
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 infopublic int read()
         throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void position(long position)
public long getTotalCompressedBytesRead()
Copyright © 2018 The Apache Software Foundation