The ZIP file format has become extremely popular for the distribution and storage of files... The java.util.zip package allows for the programmatic reading and writing of the ZIP and GZIP formats. As you値l see in this article, the API for reading and writing ZIP files is pretty straightforward to use... In this article, I値l take you through a Java program that creates of a ZIP file and also walk you through another Java program that unzips the file we created.
The ZIP file format has become extremely popular for the distribution and storage of files. ZIP files allow for compression, making transporting a set of files from one location to another (e.g., across a network) faster. When a person is downloading files via a dial up connection, the size of the file being downloaded can make the difference between sanity and being fitted for a straight jacket. Depending on the source file types being compressed, ZIP files can provide significant space savings. ZIP archives can also maintain the directory structure of files that are compressed, making the ZIP format a formidable file transport mechanism.
The java.util.zip package allows for the programmatic reading and writing of the ZIP and GZIP formats. As you値l see in this article, the API for reading and writing ZIP files is pretty straightforward to use. Learning how to use the offerings of the java.util.zip package might best be facilitated via example. In this article, I値l take you through a Java program that creates of a ZIP file and also walk you through another Java program that unzips the file we created.