AI-generated Key Takeaways
-
The
java.util.zippackage provides classes for reading and writing the standard ZIP and GZIP file formats. -
It includes classes for compressing and decompressing data using the DEFLATE compression algorithm, which is the basis of both ZIP and GZIP.
-
Checksum functionality is available through the
Checksuminterface and its implementations such asAdler32andCRC32. -
The package also provides classes for working with individual ZIP file entries and for handling errors that may occur during compression or decompression.
Interfaces
| Checksum | An interface representing a data checksum. |
Classes
| Adler32 | A class that can be used to compute the Adler-32 checksum of a data stream. |
| CheckedInputStream | An input stream that also maintains a checksum of the data being read. |
| CheckedOutputStream | An output stream that also maintains a checksum of the data being written. |
| CRC32 | A class that can be used to compute the CRC-32 of a data stream. |
| Deflater | This class provides support for general purpose compression using the popular ZLIB compression library. |
| DeflaterInputStream | Implements an input stream filter for compressing data in the "deflate" compression format. |
| DeflaterOutputStream | This class implements an output stream filter for compressing data in the "deflate" compression format. |
| GZIPInputStream | This class implements a stream filter for reading compressed data in the GZIP file format. |
| GZIPOutputStream | This class implements a stream filter for writing compressed data in the GZIP file format. |
| 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. |
| InflaterOutputStream | Implements an output stream filter for uncompressing data stored in the "deflate" compression format. |
| ZipEntry | This class is used to represent a ZIP file entry. |
| ZipFile | This class is used to read entries from a zip file. |
| ZipInputStream | This class implements an input stream filter for reading files in the ZIP file format. |
| ZipOutputStream | This class implements an output stream filter for writing files in the ZIP file format. |
Exceptions
| DataFormatException | Signals that a data format error has occurred. |
| ZipException | Signals that a Zip exception of some sort has occurred. |
Errors
| ZipError | Signals that an unrecoverable error has occurred. |