q.smali
.class public final Lcom/singbox/util/q;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final a:Lcom/singbox/util/q;
# direct methods
.method static constructor <clinit>()V
.registers 1
.line 14
new-instance v0, Lcom/singbox/util/q;
invoke-direct {v0}, Lcom/singbox/util/q;-><init>()V
sput-object v0, Lcom/singbox/util/q;->a:Lcom/singbox/util/q;
return-void
.end method
.method private constructor <init>()V
.registers 1
.line 14
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static a([B)Ljava/lang/Object;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([B)TT;"
}
.end annotation
const/4 v0, 0x0
if-eqz p0, :cond_3b
.line 28
array-length v1, p0
if-nez v1, :cond_8
const/4 v1, 0x1
goto :goto_9
:cond_8
const/4 v1, 0x0
:goto_9
if-eqz v1, :cond_c
return-object v0
.line 31
:cond_c
new-instance v1, Ljava/io/ByteArrayInputStream;
invoke-direct {v1, p0}, Ljava/io/ByteArrayInputStream;-><init>([B)V
check-cast v1, Ljava/io/Closeable;
:try_start_13
move-object p0, v1
check-cast p0, Ljava/io/ByteArrayInputStream;
.line 32
new-instance v2, Ljava/io/ObjectInputStream;
check-cast p0, Ljava/io/InputStream;
invoke-direct {v2, p0}, Ljava/io/ObjectInputStream;-><init>(Ljava/io/InputStream;)V
check-cast v2, Ljava/io/Closeable;
:try_end_1f
.catchall {:try_start_13 .. :try_end_1f} :catchall_34
:try_start_1f
move-object p0, v2
check-cast p0, Ljava/io/ObjectInputStream;
.line 33
invoke-virtual {p0}, Ljava/io/ObjectInputStream;->readObject()Ljava/lang/Object;
move-result-object p0
:try_end_26
.catchall {:try_start_1f .. :try_end_26} :catchall_2d
:try_start_26
invoke-static {v2, v0}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
:try_end_29
.catchall {:try_start_26 .. :try_end_29} :catchall_34
invoke-static {v1, v0}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
return-object p0
:catchall_2d
move-exception p0
:try_start_2e
throw p0
:try_end_2f
.catchall {:try_start_2e .. :try_end_2f} :catchall_2f
:catchall_2f
move-exception v0
:try_start_30
invoke-static {v2, p0}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
throw v0
:try_end_34
.catchall {:try_start_30 .. :try_end_34} :catchall_34
:catchall_34
move-exception p0
:try_start_35
throw p0
:try_end_36
.catchall {:try_start_35 .. :try_end_36} :catchall_36
:catchall_36
move-exception v0
invoke-static {v1, p0}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
throw v0
:cond_3b
return-object v0
.end method
.method public static a(Ljava/io/Serializable;)[B
.registers 6
const/4 v0, 0x0
if-eqz p0, :cond_38
.line 17
new-instance v1, Ljava/io/ByteArrayOutputStream;
invoke-direct {v1}, Ljava/io/ByteArrayOutputStream;-><init>()V
check-cast v1, Ljava/io/Closeable;
:try_start_a
move-object v2, v1
check-cast v2, Ljava/io/ByteArrayOutputStream;
.line 18
new-instance v3, Ljava/io/ObjectOutputStream;
move-object v4, v2
check-cast v4, Ljava/io/OutputStream;
invoke-direct {v3, v4}, Ljava/io/ObjectOutputStream;-><init>(Ljava/io/OutputStream;)V
check-cast v3, Ljava/io/Closeable;
:try_end_17
.catchall {:try_start_a .. :try_end_17} :catchall_31
:try_start_17
move-object v4, v3
check-cast v4, Ljava/io/ObjectOutputStream;
.line 19
invoke-virtual {v4, p0}, Ljava/io/ObjectOutputStream;->writeObject(Ljava/lang/Object;)V
.line 20
sget-object p0, Lkotlin/w;->a:Lkotlin/w;
:try_end_1f
.catchall {:try_start_17 .. :try_end_1f} :catchall_2a
.line 18
:try_start_1f
invoke-static {v3, v0}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
.line 21
invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
move-result-object p0
:try_end_26
.catchall {:try_start_1f .. :try_end_26} :catchall_31
invoke-static {v1, v0}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
return-object p0
:catchall_2a
move-exception p0
.line 18
:try_start_2b
throw p0
:try_end_2c
.catchall {:try_start_2b .. :try_end_2c} :catchall_2c
:catchall_2c
move-exception v0
:try_start_2d
invoke-static {v3, p0}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
throw v0
:try_end_31
.catchall {:try_start_2d .. :try_end_31} :catchall_31
:catchall_31
move-exception p0
.line 21
:try_start_32
throw p0
:try_end_33
.catchall {:try_start_32 .. :try_end_33} :catchall_33
:catchall_33
move-exception v0
invoke-static {v1, p0}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
throw v0
:cond_38
return-object v0
.end method