This is a Java-based file compression utility that supports both GUI and command-line interfaces. It provides functionalities for compressing and decompressing files using different compression algorithms. It was made as a university project, so don't expect anything good, because it was made in a week and improved little by little later.
- GUI Interface: Provides a user-friendly graphical interface for selecting files and compression options.
- Command-Line Interface: Offers a command-line interface for users who prefer working with a terminal.
- Multiple Compression Algorithms: Supports various compression algorithms such as DEFLATE, with the option to add more.
- Progress Tracking: Displays progress during compression and decompression processes.
- File Size Comparison: Allows users to compare the sizes of compressed and decompressed files.
- File Content Equality Check: Enables users to check if the content of two files is identical.
To use the GUI version of the utility, simply clone the repository and compile the Java files using a Java compiler. Then, run the Form class to launch the GUI.
For the command-line version, compile the Main class and run the generated executable JAR file with appropriate command-line arguments.
- Launch the application.
- Click "Select File" to choose the file you want to compress or decompress.
- Choose the desired compression algorithm from the dropdown list.
- Click "Compress" or "Decompress" to start the process.
- Monitor the progress in the progress bar and view the status in the status label.
- Once the process is complete, a message will indicate success or failure.
- comp: Compress a file.
- decomp: Decompress a file.
- size: Get the size of a file.
- equal: Check if two files are equal.