- java.util.zip - ZipOutputStream
- java.util.zip - ZipInputStream
- java.util.zip - ZipFile
- java.util.zip - ZipEntry
- java.util.zip - InflaterOutputStream
- java.util.zip - InflaterInputStream
- java.util.zip - Inflater
- java.util.zip - GZIPOutputStream
- java.util.zip - GZIPInputStream
- java.util.zip - DeflaterOutputStream
- java.util.zip - DeflaterInputStream
- java.util.zip - Deflater
- java.util.zip - CRC32
- java.util.zip - CheckedOutputStream
- java.util.zip - CheckedInputStream
- java.util.zip - Adler32
- java.util.zip - Home
java.util.zip Package Extras
- java.util.zip - Discussion
- java.util.zip - Useful Resources
- java.util.zip - Quick Guide
- java.util.zip - Error
- java.util.zip - Exceptions
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
java.util.zip - GZIPInputStream Class
Introduction
The java.util.zip.GZIPInputStream class implements a stream filter for reading compressed data in the GZIP file format.
Class declaration
Following is the declaration for java.util.zip.GZIPInputStream class −
pubpc class GZIPInputStream extends InflaterInputStream
Fields
Following are the fields for java.util.zip.GZIPInputStream class −
protected CRC32 crc − CRC-32 for uncompressed data.
protected boolean eos − Indicates end of input stream.
static int GZIP_MAGIC − GZIP header magic number.
Constructors
Sr.No. | Constructor & Description |
---|---|
1 | GZIPInputStream(InputStream in) Creates a new input stream with a default buffer size. |
2 | GZIPInputStream(InputStream in, int size) Creates a new input stream with the specified buffer size. |
Class methods
Sr.No. | Method & Description |
---|---|
1 | Closes this input stream and releases any system resources associated with the stream. |
2 | Reads uncompressed data into an array of bytes. |
Methods inherited
This class inherits methods from the following classes −
java.util.zip.InflaterInputStream
java.io.FilterInputStream
java.lang.Object