.class public Lcom/zk/drivermonitor/utils/ZLibUtils; .super Ljava/lang/Object; .source "ZLibUtils.java" # direct methods .method public constructor ()V .locals 0 .line 21 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static a([B)[B .locals 5 const/4 v0, 0x0 .line 70 new-array v1, v0, [B .line 72 new-instance v1, Ljava/util/zip/Deflater; invoke-direct {v1}, Ljava/util/zip/Deflater;->()V .line 74 invoke-virtual {v1}, Ljava/util/zip/Deflater;->reset()V .line 75 invoke-virtual {v1, p0}, Ljava/util/zip/Deflater;->setInput([B)V .line 76 invoke-virtual {v1}, Ljava/util/zip/Deflater;->finish()V .line 77 new-instance v2, Ljava/io/ByteArrayOutputStream; array-length v3, p0 invoke-direct {v2, v3}, Ljava/io/ByteArrayOutputStream;->(I)V const/16 v3, 0x400 .line 79 :try_start_0 new-array v3, v3, [B .line 80 :goto_0 invoke-virtual {v1}, Ljava/util/zip/Deflater;->finished()Z move-result v4 if-eqz v4, :cond_0 .line 84 invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B move-result-object v0 :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 90 :try_start_1 invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->close()V :try_end_1 .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0 goto :goto_1 :catch_0 move-exception p0 .line 92 invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V :goto_1 move-object p0, v0 goto :goto_2 .line 81 :cond_0 :try_start_2 invoke-virtual {v1, v3}, Ljava/util/zip/Deflater;->deflate([B)I move-result v4 .line 82 invoke-virtual {v2, v3, v0, v4}, Ljava/io/ByteArrayOutputStream;->write([BII)V :try_end_2 .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1 .catchall {:try_start_2 .. :try_end_2} :catchall_0 goto :goto_0 :catchall_0 move-exception p0 goto :goto_3 :catch_1 move-exception v0 .line 87 :try_start_3 invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V :try_end_3 .catchall {:try_start_3 .. :try_end_3} :catchall_0 .line 90 :try_start_4 invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->close()V :try_end_4 .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_2 goto :goto_2 :catch_2 move-exception v0 .line 92 invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V .line 95 :goto_2 invoke-virtual {v1}, Ljava/util/zip/Deflater;->end()V return-object p0 .line 90 :goto_3 :try_start_5 invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->close()V :try_end_5 .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_3 goto :goto_4 :catch_3 move-exception v0 .line 92 invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V .line 94 :goto_4 throw p0 .end method