Package net.i2p.util

Class ResettableGZIPInputStream

All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
ReusableGZIPInputStream

public class ResettableGZIPInputStream
extends InflaterInputStream
GZIP implementation per RFC 1952, reusing java's standard CRC32 and Inflater and InflaterInputStream implementations. The main difference is that this implementation allows its state to be reset to initial values, and hence reused, while the standard GZIPInputStream reads the GZIP header from the stream on instantiation.