- 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 - DeflaterInputStream Class
Introduction
The java.util.zip.DeflaterInputStream class implements an input stream filter for compressing data in the "deflate" compression format.
Class declaration
Following is the declaration for java.util.zip.DeflaterInputStream class −
pubpc class DeflaterInputStream extends FilterInputStream
Fields
Following are the fields for java.util.zip.DeflaterInputStream class −
protected byte[] buf − Input buffer for reading compressed data.
protected Deflater def − Compressor for this stream.
Constructors
Sr.No. | Constructor & Description |
---|---|
1 | DeflaterInputStream(InputStream in) Creates a new input stream with a default compressor and buffer size. |
2 | DeflaterInputStream(InputStream in, Deflater defl) Creates a new input stream with the specified compressor and a default buffer size. |
3 | DeflaterInputStream(InputStream in, Deflater defl, int bufLen) Creates a new input stream with the specified compressor and buffer size. |
Class methods
Sr.No. | Method & Description |
---|---|
1 | Returns 0 after EOF has been reached, otherwise always return 1. |
2 | Closes this input stream and its underlying input stream, discarding any pending uncompressed data. |
3 | Reads a single byte of compressed data from the input stream. |
4 | Reads compressed data into a byte array. |
5 | Skips over and discards data from the input stream. |
Methods inherited
This class inherits methods from the following classes −
java.io.FilterInputStream
java.lang.Object