@@ -27,7 +27,7 @@ public class GzipUtil {
27
27
* Compresses a given non-compressed source file into compressed target file.
28
28
* @param sourcePath a path where source is located
29
29
* @param targetPath a path where target can be placed
30
- * Note: raises an IO exception if any break happens.
30
+ * Note: logs an IO exception if any break happens.
31
31
*/
32
32
public static void compress (String sourcePath , String targetPath ) {
33
33
try {
@@ -41,13 +41,13 @@ public static void compress(String sourcePath, String targetPath) {
41
41
* Decompresses and recovers corrupted GZIP file into target file.
42
42
* @param sourcePath a path where corrupted GZIP is located
43
43
* @param targetPath a path where target can be placed
44
- * Note: raises an IO exception other than GZIP dead blocks.
44
+ * Note: logs an IO exception other than GZIP dead blocks.
45
45
*/
46
46
public static void recover (String sourcePath , String targetPath ) {
47
47
try {
48
48
GzipUtil .decompress (Paths .get (sourcePath ), Paths .get (targetPath ));
49
49
} catch (IOException exception ) {
50
- // raise an exception if expected exception is not end of ZLIB related.
50
+ // log an exception if expected exception is not end of ZLIB related.
51
51
if (CORRUPTED_FILE_ERROR .equals (exception .getMessage ()) == false ) {
52
52
logger .error ("Error occurred while compressing the file, error={}" , exception .getMessage ());
53
53
} else {
@@ -60,7 +60,7 @@ public static void recover(String sourcePath, String targetPath) {
60
60
* Decompresses a given compressed source file into target file.
61
61
* @param sourcePath a path where compressed source is located
62
62
* @param targetPath a path where target can be placed
63
- * Note: raises an IO exception if any break happens.
63
+ * Note: logs an IO exception if any break happens.
64
64
*/
65
65
public static void decompress (String sourcePath , String targetPath ) {
66
66
try {
0 commit comments