- The Java application that allow user to compress and decompress file using GZIP algorithm.
- The app provides easy-to-use Graphical User Interface using Java Swing that allows user to select file for compression & decompression and display the progress of operation.
- Compresses files using the GZIP compression algorithm.
- Decompresses GZIP-compressed files.
- It contain both Compression and Decompression options.
-
- Reduce the size of file or data.
- Maintain the quality as much as possible.
- Remove redundancies from file and make it smaller without loosing any information.
-
- Restore compressed file to their original size and format.
- Restore compressed file without loosing any important information.
- Provide to users with easy access to the original file.
-
- Select the "Compress File" button to compress a file. You will be prompted to select a file to compress.
- Once you have selected a file, the app will compress it and save the compressed file in the same directory as the original file with the "Compressed.gz" extension.
- Select the "Decompress File" button to decompress a file. You will be prompted to select a file to decompress.
- Once you have selected a compressed file, the app will decompress it and save the decompressed file in the same directory as the original file without the ".gz" extension.
- You can repeat these steps for any other files you wish to compress or decompress using the app.
-
The main components of the code are:
- 🔸GUI: The main class that provides the user interface and handles user input.
- 🔸Compressor: The helper class that implements the compression algorithm uses GZIP O/P Stream.
- 🔸Decompressor: The helper class that implements the decompression algorithm uses GZIP I/P Stream.
I used some external resources for guidance :