- 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 - ZipInputStream Class
Introduction
The java.util.zip.ZipInputStream class implements an input stream filter for reading files in the ZIP file format. Includes support for both compressed and uncompressed entries.
Class declaration
Following is the declaration for java.util.zip.ZipInputStream class −
pubpc class ZipInputStream extends InflaterInputStream
Fields
Following are the fields for java.util.zip.ZipInputStream class −
static int CENATT
static int CENATX
static int CENCOM
static int CENCRC
static int CENDSK
static int CENEXT
static int CENFLG
static int CENHDR
static int CENHOW
static int CENLEN
static int CENNAM
static int CENOFF
static long CENSIG
static int CENSIZ
static int CENTIM
static int CENVEM
static int CENVER
static int ENDCOM
static int ENDHDR
static int ENDOFF
static long ENDSIG
static int ENDSIZ
static int ENDSUB
static int ENDTOT
static int EXTCRC
static int EXTHDR
static int EXTLEN
static long EXTSIG
static int EXTSIZ
static int LOCCRC
static int LOCEXT
static int LOCFLG
static int LOCHDR
static int LOCHOW
static int LOCLEN
static int LOCNAM
static long LOCSIG
static int LOCSIZ
static int LOCTIM
static int LOCVER
Constructors
Sr.No. | Constructor & Description |
---|---|
1 | ZipInputStream(InputStream in) Creates a new ZIP input stream. |
2 | ZipInputStream(InputStream in, Charset charset) Creates a new ZIP input stream. |
Class methods
Sr.No. | Method & Description |
---|---|
1 | Returns 0 after EOF has reached for the current entry data, otherwise always return 1. |
2 | Closes this input stream and releases any system resources associated with the stream. |
3 | Closes the current ZIP entry and positions the stream for reading the next entry. |
4 | Reads the next ZIP file entry and positions the stream at the beginning of the entry data. |
5 | Reads from the current ZIP entry into an array of bytes. |
6 | Skips specified number of bytes in the current ZIP entry. |
Methods inherited
This class inherits methods from the following classes −
java.util.zip.InflaterInputStream
java.io.FilterInputStream
java.lang.Object