- 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 - Inflater Class
Introduction
The java.util.zip.Inflater class provides support for general purpose decompression using the popular ZLIB compression pbrary. The ZLIB compression pbrary was initially developed as part of the PNG graphics standard and is not protected by patents. It is fully described in the specifications at the java.util.zip package description.
Class declaration
Following is the declaration for java.util.zip.Inflater class −
pubpc class Inflater extends Object
Constructors
Sr.No. | Constructor & Description |
---|---|
1 | Inflater() Creates a new decompressor. |
2 | Inflater(boolean nowrap) Creates a new decompressor. |
Class methods
Sr.No. | Method & Description |
---|---|
1 | Closes the decompressor and discards any unprocessed input. |
2 | Returns true if the end of the compressed data stream has been reached. |
3 | Returns the ADLER-32 value of the uncompressed data. |
4 | Returns the total number of compressed bytes input so far. |
5 | Returns the total number of uncompressed bytes output so far. |
6 | Returns the total number of bytes remaining in the input buffer. |
7 | Returns the total number of compressed bytes input so far. |
8 | Returns the total number of uncompressed bytes output so far. |
9 | Uncompresses bytes into specified buffer. |
10 | Uncompresses bytes into specified buffer. |
11 | Returns true if a preset dictionary is needed for decompression. |
12 | Returns true if no data remains in the input buffer. |
13 | Resets inflater so that a new set of input data can be processed. |
14 | Sets the preset dictionary to the given array of bytes. |
15 | Sets the preset dictionary to the given array of bytes. |
16 | Sets input data for decompression. |
17 | Sets input data for decompression. |
Methods inherited
This class inherits methods from the following classes −
java.lang.Object