Zip Files using java.util.zip Package

java provides the ‘java.util.zip‘ package to compress and decompress the data

In the below example we are using ZipOutputStream Class for output stream filter for writing files in the ZIP file format, ZipEntry Class to represent the Zip file entry and ZipInputStream Class for input stream filter for reading files in the ZIP file format

 
Reference

  1. http://www.oracle.com/technetwork/articles/java/compress-1565076.html

Leave a Reply

Your email address will not be published. Required fields are marked *