# Package java.util.zip

Provides classes for reading and writing the standard ZIP and GZIP file formats.

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  Checksum | An interface representing a data checksum.

- Class Summary
  Class | Description
  --- | ---
  Adler32 | Computes Adler32 checksum for a stream of data.
  CRC32 | Computes CRC32 data checksum of a data stream.
  Inflater | This class provides support for general purpose decompression using the popular ZLIB compression library.
  InflaterInputStream | This class implements a stream filter for uncompressing data in the "deflate" compression format.
  ZipEntry | This class is used to represent a ZIP file entry.
  ZipInputStream | This class implements an input stream filter for reading files in the ZIP file format.

- Exception Summary
  Exception | Description
  --- | ---
  DataFormatException | Signals that a data format error has occurred.
  ZipException | Signals that a Zip exception of some sort has occurred.

## Package java.util.zip Description

Provides classes for reading and writing the standard ZIP and GZIP file formats. Also includes classes for compressing and decompressing data using the DEFLATE compression algorithm, which is used by the ZIP and GZIP file formats. Additionally, there are utility classes for computing the CRC-32 and Adler-32 checksums of arbitrary input streams.

## Package Specification

- Info-ZIP Application Note 970311 - a detailed description of the Info-ZIP format upon which the `java.util.zip` classes are based.

- An implementation may optionally support the ZIP64(tm) format extensions defined by the PKWARE ZIP File Format Specification. The ZIP64(tm) format extensions are used to overcome the size limitations of the original ZIP format.

- APPENDIX D of PKWARE ZIP File Format Specification - Language Encoding Flag (EFS) to encode ZIP entry filename and comment fields using UTF-8.

- ZLIB Compressed Data Format Specification version 3.3 (pdf) (RFC 1950)

- DEFLATE Compressed Data Format Specification version 1.3 (pdf) (RFC 1951)

- GZIP file format specification version 4.3 (pdf) (RFC 1952)

- CRC-32 checksum is described in RFC 1952 (above)

- Adler-32 checksum is described in RFC 1950 (above)

Since:
  JDK1.1

Copyright © 2025 API Design. All Rights Reserved.