Module java.base
Package java.util.zip
✗
package java.util.zip
Comparing jdk-20-ga and jdk-21+35
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, CRC-32C 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.zipclasses 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 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)
- CRC-32C checksum is described in Internet Small Computer Systems Interface (iSCSI) (pdf) (RFC 3720)
- Adler-32 checksum is described in RFC 1950 (above)
- Since:
- 1.1
- External Specifications
Types
- ✓ Adler32
- ✓ CRC32
- ✗ CRC32C
- ✓ CheckedInputStream
- ✓ CheckedOutputStream
- ✓ Checksum
- ✓ DataFormatException
- ✓ Deflater
- ✓ DeflaterInputStream
- ✓ DeflaterOutputStream
- ✓ GZIPInputStream
- ✓ GZIPOutputStream
- ✓ Inflater
- ✓ InflaterInputStream
- ✓ InflaterOutputStream
- ✓ ZipEntry
- ✓ ZipError
- ✓ ZipException
- ✓ ZipFile
- ✗ ZipInputStream
- ✗ ZipOutputStream
Summary
| Elements | Comments | Descriptions | Total | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed | ||
| java.util.zip | 4 | 4 | ||||||||
| CRC32C | 4 | 4 | ||||||||
| ZipInputStream | 4 | 4 | ||||||||
| ZipOutputStream | 1 | 1 | ||||||||
| Total | 13 | 13 | ||||||||