public class Deflate64CompressorInputStream extends CompressorInputStream implements InputStreamStatistics
Modifier and Type | Field and Description |
---|---|
private long |
compressedBytesRead |
private HuffmanDecoder |
decoder |
private byte[] |
oneByte |
private java.io.InputStream |
originalStream |
Constructor and Description |
---|
Deflate64CompressorInputStream(HuffmanDecoder decoder) |
Deflate64CompressorInputStream(java.io.InputStream in)
Constructs a Deflate64CompressorInputStream.
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
private void |
closeDecoder() |
long |
getCompressedCount() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
count, count, getBytesRead, getCount, getUncompressedCount, pushedBackBytes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUncompressedCount
private java.io.InputStream originalStream
private HuffmanDecoder decoder
private long compressedBytesRead
private final byte[] oneByte
public Deflate64CompressorInputStream(java.io.InputStream in)
in
- the stream to read fromDeflate64CompressorInputStream(HuffmanDecoder decoder)
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.EOFException
- if the underlying stream is exhausted before the end of defalted data was reached.java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.EOFException
- if the underlying stream is exhausted before the end of defalted data was reached.java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
public long getCompressedCount()
getCompressedCount
in interface InputStreamStatistics
private void closeDecoder()