File tree Expand file tree Collapse file tree 6 files changed +5
-18
lines changed
Expand file tree Collapse file tree 6 files changed +5
-18
lines changed Original file line number Diff line number Diff line change @@ -22,3 +22,5 @@ target/
2222* .war
2323* .ear
2424* .class
25+
26+ logs /file-compression.log
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ mvn exec:java
124124### Using JAR directly
125125After building with Maven, you can run the JAR:
126126``` bash
127- java -jar target/file-compression-1 .0-SNAPSHOT-jar-with-dependencies.jar
127+ java -jar target/file-compression-2 .0-SNAPSHOT-jar-with-dependencies.jar
128128```
129129
130130![ Outlook] ( /git_resource/outlook.png?raw=true " File Compression GUI ")
Original file line number Diff line number Diff line change 66
77 <groupId >prog</groupId >
88 <artifactId >file-compression</artifactId >
9- <version >1 .0-SNAPSHOT</version >
9+ <version >2 .0-SNAPSHOT</version >
1010
1111 <properties >
1212 <maven .compiler.source>21</maven .compiler.source>
Original file line number Diff line number Diff line change @@ -196,18 +196,4 @@ private void decompressFile() {
196196 public void decompress () {
197197 decompressFile ();
198198 }
199-
200- /**
201- * Decompresses the file to a specific output path
202- *
203- * @param outputFilePath The path where the decompressed file will be saved
204- * @throws RuntimeException if decompression fails
205- * @throws IllegalArgumentException if outputFilePath is null or invalid
206- */
207- @ Override
208- public void decompress (String outputFilePath ) {
209- FileUtils .validateOutputFilePath (outputFilePath );
210- // This method is no longer supported with the new architecture
211- throw new UnsupportedOperationException ("Custom output path not supported. Use decompress() instead." );
212- }
213199}
Original file line number Diff line number Diff line change @@ -198,7 +198,6 @@ public static String[] generateHuffmanCodes(HuffmanNode node) {
198198 * }</pre>
199199 *
200200 * @return An array of Constants.BYTE_VALUES_COUNT strings where index i contains the binary representation of byte value i
201- * @since 1.0
202201 */
203202 public static String [] createBinaryStringsForBytes () {
204203 String [] byteToBinaryStrings = new String [Constants .BYTE_VALUES_COUNT ];
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ private static void showHowToDialog() {
102102 private static void showAboutDialog () {
103103 String message = "<html><body style='width: 350px; padding: 10px;'>" +
104104 "<h2>File Compressor</h2>" +
105- "<p><b>Version:</b> 1 .0</p>" +
105+ "<p><b>Version:</b> 2 .0</p>" +
106106 "<p>A Java-based file compression application implementing two classic compression algorithms:</p>" +
107107 "<ul>" +
108108 "<li><b>Huffman Coding</b> - Frequency-based compression</li>" +
You can’t perform that action at this time.
0 commit comments