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
IOException
public OptimizedGZIPInputStream(InputStream in, BufferRecycler bufferRecycler, GZIPRecycler gzipRecycler) throws IOException
IOException
public int available()
available
in class InputStream
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public void mark(int limit)
mark
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public final int read() throws IOException
read
in class InputStream
IOException
public final int read(byte[] buf) throws IOException
read
in class InputStream
IOException
public final int read(byte[] buf, int offset, int len) throws IOException
read
in class InputStream
IOException
public void reset() throws IOException
reset
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
protected byte[] _getTmpBuffer()
protected final void _readHeader() throws IOException
IOException
protected final void _readTrailer() throws IOException
IOException
Copyright © 2018. All rights reserved.