
In today's world the data become huge as the System becomes old. So all the users used to compress files manually using tools like winrar,windows zip utility, so that old files can not occupy more space in hard disk and new data can be accomodated in the given same space. Java also provide some base classes and their implementation so that the process of compression can be automated with Java code. The following table will explain the methods and files which Java provide for the Compression.
File Name | Description |
| CheckedInputStream | GetCheckSum( ) produces checksum for any InputStream |
| CheckedOutputStream | GetCheckSum( ) produces checksum for any OutputStream |
| DeflaterOutputStream | Base class for compression classes . All the utilities will be created for new compression by extending this class. |
| ZipOutputStream | A DeflaterOutputStream that compresses data into the Zip file format |
| GZIPOutputStream | A DeflaterOutputStream that compresses data into the GZIP file format |
| InflaterInputStream | Base class for decompression classes. All the utilities will be created for new compression by extending this class. |
| ZipInputStream | A DeflaterInputStream that Decompresses data that has been stored in the Zip file format |
| GZIPInputStream | A DeflaterInputStream that decompresses data that has been stored in the GZIP file format |
Although there are many compression algorithms, Zip and GZIP are possibly the most commonly used. Thus you can easily manipulate your compressed data with the many tools available for reading and writing these formats. The coming section will explain how to use the Zip compression tecniques using the Java code.
Java Discussion
- - Java web application
- - Difference between BMT an
- - Replace getParameterValue
- - Interviewing Next week -
- - Sudoku solver




