Javazip 简明教程

java.util.zip Package Tutorial

java.util.zip 包提供用于读取和写入标准 ZIP 和 GZIP 文件格式的类。还包括用于使用 ZIP 和 GZIP 文件格式采用的 DEFLATE 压缩算法对数据进行压缩和解压缩的类。此外,还有用于计算任意输入流的 CRC-32 和 Adler-32 校验和的实用程序类。

java.util.zip package 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.

这份参考书会讲解 java.util.zip 包中的简单且实用的方法。

This reference will take you through simple and practical methods available in java.util.zip package.

Audience

本参考书是为初学者准备的,以帮助他们了解与 java.util.zip 包中的所有方法相关的基本功能。

This reference has been prepared for the beginners to help them understand the basic functionality related to all the methods available in java.util.zip package.

Prerequisites

在开始使用此参考中给出的各种类型的示例进行练习之前,我假设您已经了解基本的 Java 编程。

Before you start doing practice with various types of examples given in this reference, I’m making an assumption that you are already aware of basic Java Programming.