public class CompressedInputStream
extends java.io.InputStream
CompressionInfo.| Modifier and Type | Field and Description |
|---|---|
protected long |
bufferOffset |
protected int |
validBufferBytes |
| Constructor and Description |
|---|
CompressedInputStream(java.io.InputStream source,
CompressionInfo info,
boolean hasPostCompressionAdlerChecksums) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getTotalCompressedBytesRead() |
void |
position(long position) |
int |
read() |
protected long bufferOffset
protected int validBufferBytes
public CompressedInputStream(java.io.InputStream source,
CompressionInfo info,
boolean hasPostCompressionAdlerChecksums)
source - Input source to read compressed data frominfo - Compression infopublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void position(long position)
public long getTotalCompressedBytesRead()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionCopyright © 2015 The Apache Software Foundation