This article mainly describes the use of Java-related classes can be implemented to the file or folder compression.
Zlib is a data compression library that is designed to handle simple data (regardless of the source of the data).
7z is a new
GZIP, ZLIB, DEFLATE, file format from: http://apps.hi.baidu.com/share/detail/19276079 2009-12-07 19:29
Gzip was first created by Jean-loup Gailly and Mark Adler for file compression in UNIX systems. We often use the file suffix. gz in
In practical applications, there are sometimes three options for processing zip compression and decompression:
Call rar.exe, unzip.exe, etc.
Use a ready-made Library
Full handwriting
First, although the task can be completed, the results cannot
Use zlib library for Data Compression
Zlib is designed to be a free, general-purpose, legally unencumbered -- that is, not covered by any patents -- lossless data-compression library for use on usually ally any computer hardware and operating system.
Miniz-single C source file deflate/inflate compression library with zlib-compatible API, ZIP Archive reading/writing, PNG writing-Google Project hosting
Miniz. C is a lossless, high performance data compression library in a single source file
The three concepts zlib, Gzip, and zip are indeed confusing:
1. Gzip
Gzip is a data format in UNIX.
Gzip is built on zlib and includes a layer. Some additional information is added at the header and end.
Gzip-tar.gz.
Gzip is a File compression
Zlib is a data compression library that is designed to handle simple data (regardless of the source of the data).
Gzip is a file compression tool (or the compressed file format produced by the compression tool) that is designed to work with
Official Handbook:Http://www.zlib.net/manual.htmlReference connection:http://blog.csdn.net/zhoudaxia/article/details/8039519http://www.oschina.net/code/snippet_65636_22542http://blog.163.com/bh_binghu/blog/static/94553512011626102054571/Please
zlib IntroductionZlib is a library of functions for data compression, developed by Jean-loup Gailly and Mark Adler, and published on May 1, 1995 in the first edition of version 0.9. Zlib uses the DEFLATE algorithm, originally written for the Libpng
Scene:1. Windows did not find the system provided by the Win32 API to generate a Zip compressed file, there is known that Daniel Trouble to leave a message.2. Zlib is more commonly used, compiling is also convenient, use it to do compression. The
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.