APIdia Launch Partner
Top Description Interfaces Classes
module java.base

Package java.util.zip


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

Since
1.1
External Specification
https://www.rfc-editor.org/info/rfc1950, https://www.rfc-editor.org/info/rfc1951, https://www.rfc-editor.org/info/rfc1952, https://www.rfc-editor.org/info/rfc3720

Interface Summary

Modifier and TypeInterface and Description
public interface
Checksum

An interface representing a data checksum.

pack-priv interface

Class Summary

Modifier and TypeClass and Description
public class
Adler32

A class that can be used to compute the Adler-32 checksum of a data stream.

public class
CheckedInputStream

An input stream that also maintains a checksum of the data being read.

public class
CheckedOutputStream

An output stream that also maintains a checksum of the data being written.

public class
CRC32

A class that can be used to compute the CRC-32 of a data stream.

public class
CRC32C

A class that can be used to compute the CRC-32C of a data stream.

public class
DataFormatException

Signals that a data format error has occurred.

public class
Deflater

This class provides support for general purpose compression using the popular ZLIB compression library.

public class
DeflaterInputStream

Implements an input stream filter for compressing data in the "deflate" compression format.

public class
DeflaterOutputStream

This class implements an output stream filter for compressing data in the "deflate" compression format.

public class
GZIPInputStream

This class implements a stream filter for decompressing GZIP file format data.

public class
GZIPOutputStream

This class implements a stream filter for writing compressed data in the GZIP file format.

public class
Inflater

This class provides support for general purpose decompression using the popular ZLIB compression library.

public class
InflaterInputStream

This class implements a stream filter for uncompressing data in the "deflate" compression format.

public class
InflaterOutputStream

Implements an output stream filter for decompressing data stored in the "deflate" compression format.

pack-priv class
ZipCoder

Utility class for ZIP file entry name and comment decoding and encoding.

pack-priv class
public class
ZipEntry

This class is used to represent a ZIP file entry.

public class
ZipError

Deprecated for removal since 24. ZipError is no longer used and is obsolete. ZipException should be used instead.
Signals that an unrecoverable error has occurred.
public class
ZipException

Signals that a ZIP exception of some sort has occurred.

public class
ZipFile

This class is used to read entries from a ZIP file.

public class
ZipInputStream

An input stream for reading compressed and uncompressed ZIP file entries from a stream of bytes in the ZIP file format.

public class
ZipOutputStream

This class implements an output stream filter for writing files in the ZIP file format.

pack-priv class