StreamUtil.smali
.class public final Lcom/tencent/tinker/commons/util/StreamUtil;
.super Ljava/lang/Object;
# direct methods
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static closeQuietly(Ljava/lang/Object;)V
.registers 2
if-nez p0, :cond_3
:cond_2
:goto_2
return-void
:cond_3
:try_start_3
instance-of v0, p0, Ljava/io/Closeable;
if-eqz v0, :cond_f
check-cast p0, Ljava/io/Closeable;
invoke-interface {p0}, Ljava/io/Closeable;->close()V
goto :goto_2
:catch_d
move-exception v0
goto :goto_2
:cond_f
instance-of v0, p0, Ljava/lang/AutoCloseable;
if-eqz v0, :cond_19
check-cast p0, Ljava/lang/AutoCloseable;
invoke-interface {p0}, Ljava/lang/AutoCloseable;->close()V
goto :goto_2
:cond_19
instance-of v0, p0, Ljava/util/zip/ZipFile;
if-eqz v0, :cond_2
check-cast p0, Ljava/util/zip/ZipFile;
invoke-virtual {p0}, Ljava/util/zip/ZipFile;->close()V
:try_end_22
.catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_22} :catch_d
goto :goto_2
.end method