public class OptimizedGZIPInputStream extends InputStream
GZIPInputStream that
reuses underlying Deflater instance}.| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
_buffer |
protected int |
_bufferEnd |
protected int |
_bufferPtr |
protected BufferRecycler |
_bufferRecycler
Object that handles details of buffer recycling
|
protected CRC32 |
_crc |
protected GZIPRecycler |
_gzipRecycler |
protected Inflater |
_inflater |
protected InputStream |
_rawInput
Underlying input stream from which compressed data is to be
read from.
|
protected com.ning.compress.gzip.OptimizedGZIPInputStream.State |
_state
Flag set to true during handling of header processing
|
protected byte[] |
_tmpBuffer
Temporary buffer used for single-byte reads, skipping.
|
| Constructor and Description |
|---|
OptimizedGZIPInputStream(InputStream in) |
OptimizedGZIPInputStream(InputStream in,
BufferRecycler bufferRecycler,
GZIPRecycler gzipRecycler) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
_getTmpBuffer() |
protected void |
_readHeader() |
protected void |
_readTrailer() |
int |
available() |
void |
close() |
void |
mark(int limit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] buf) |
int |
read(byte[] buf,
int offset,
int len) |
void |
reset() |
long |
skip(long n) |
protected Inflater _inflater
protected final CRC32 _crc
protected final BufferRecycler _bufferRecycler
protected final GZIPRecycler _gzipRecycler
protected byte[] _buffer
protected int _bufferPtr
protected int _bufferEnd
protected byte[] _tmpBuffer
protected InputStream _rawInput
protected com.ning.compress.gzip.OptimizedGZIPInputStream.State _state
public OptimizedGZIPInputStream(InputStream in) throws IOException
IOExceptionpublic OptimizedGZIPInputStream(InputStream in, BufferRecycler bufferRecycler, GZIPRecycler gzipRecycler) throws IOException
IOExceptionpublic int available()
available in class InputStreampublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void mark(int limit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic final int read()
throws IOException
read in class InputStreamIOExceptionpublic final int read(byte[] buf)
throws IOException
read in class InputStreamIOExceptionpublic final int read(byte[] buf,
int offset,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionprotected byte[] _getTmpBuffer()
protected final void _readHeader()
throws IOException
IOExceptionprotected final void _readTrailer()
throws IOException
IOExceptionCopyright © 2014. All Rights Reserved.