public class GZipDeflatingInputStream extends java.io.InputStream implements InputStreamWrapper
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
buffer |
private int |
BUFFER_SIZE |
(package private) int |
bufferEnd |
(package private) int |
bufferOffset |
private java.util.zip.CRC32 |
crc |
private byte[] |
deflatedBytes |
(package private) java.util.zip.Deflater |
deflater |
(package private) boolean |
EOFDeflated |
(package private) boolean |
EOFInput |
(package private) boolean |
EOFTail |
private java.io.InputStream |
inputStream |
| Constructor and Description |
|---|
GZipDeflatingInputStream(java.io.InputStream inputStream) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
private int |
getDeflatedBufferAvail() |
java.io.InputStream |
getWrappedInputStream() |
private void |
primeDeflateBuffer() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
private void |
writeInt(int i) |
private void |
writeShort(int s) |
private int BUFFER_SIZE
java.util.zip.Deflater deflater
private java.io.InputStream inputStream
private byte[] buffer
private byte[] deflatedBytes
private java.util.zip.CRC32 crc
int bufferOffset
int bufferEnd
boolean EOFInput
boolean EOFDeflated
boolean EOFTail
public GZipDeflatingInputStream(java.io.InputStream inputStream)
throws java.io.IOException
java.io.IOExceptionprivate void primeDeflateBuffer()
throws java.io.IOException
java.io.IOExceptionprivate int getDeflatedBufferAvail()
public 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 int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic java.io.InputStream getWrappedInputStream()
getWrappedInputStream in interface InputStreamWrapperprivate void writeInt(int i)
private void writeShort(int s)