574 lines
8.8 KiB
Smali
574 lines
8.8 KiB
Smali
.class public final Lcom/badlogic/gdx/utils/PropertiesUtils;
|
|
.super Ljava/lang/Object;
|
|
.source "PropertiesUtils.java"
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 36
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Lcom/badlogic/gdx/utils/ObjectMap;Ljava/io/Reader;)V
|
|
.locals 16
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/badlogic/gdx/utils/ObjectMap<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
">;",
|
|
"Ljava/io/Reader;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
if-eqz v0, :cond_2a
|
|
|
|
if-eqz v1, :cond_29
|
|
|
|
const/16 v2, 0x28
|
|
|
|
.line 53
|
|
new-array v2, v2, [C
|
|
|
|
.line 57
|
|
new-instance v3, Ljava/io/BufferedReader;
|
|
|
|
invoke-direct {v3, v1}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V
|
|
|
|
const/4 v4, 0x2
|
|
|
|
const/4 v6, 0x4
|
|
|
|
const/4 v7, 0x1
|
|
|
|
const/4 v8, -0x1
|
|
|
|
const/4 v9, 0x0
|
|
|
|
move-object v10, v2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v11, 0x0
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v13, -0x1
|
|
|
|
const/4 v14, 0x0
|
|
|
|
:goto_0
|
|
const/4 v15, 0x1
|
|
|
|
.line 60
|
|
:goto_1
|
|
invoke-virtual {v3}, Ljava/io/BufferedReader;->read()I
|
|
|
|
move-result v5
|
|
|
|
if-ne v5, v8, :cond_5
|
|
|
|
if-ne v11, v4, :cond_1
|
|
|
|
if-le v12, v6, :cond_0
|
|
|
|
goto :goto_2
|
|
|
|
.line 194
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v1, "Invalid Unicode sequence: expected format \\uxxxx"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
:goto_2
|
|
if-ne v13, v8, :cond_2
|
|
|
|
if-lez v2, :cond_2
|
|
|
|
move v13, v2
|
|
|
|
:cond_2
|
|
if-ltz v13, :cond_4
|
|
|
|
.line 200
|
|
new-instance v1, Ljava/lang/String;
|
|
|
|
invoke-direct {v1, v10, v9, v2}, Ljava/lang/String;-><init>([CII)V
|
|
|
|
.line 201
|
|
invoke-virtual {v1, v9, v13}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
.line 202
|
|
invoke-virtual {v1, v13}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
if-ne v11, v7, :cond_3
|
|
|
|
.line 204
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "\u0000"
|
|
|
|
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
.line 206
|
|
:cond_3
|
|
invoke-virtual {v0, v2, v1}, Lcom/badlogic/gdx/utils/ObjectMap;->a(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_4
|
|
return-void
|
|
|
|
:cond_5
|
|
int-to-char v5, v5
|
|
|
|
.line 66
|
|
array-length v1, v10
|
|
|
|
if-ne v2, v1, :cond_6
|
|
|
|
.line 67
|
|
array-length v1, v10
|
|
|
|
mul-int/lit8 v1, v1, 0x2
|
|
|
|
new-array v1, v1, [C
|
|
|
|
.line 68
|
|
invoke-static {v10, v9, v1, v9, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
move-object v10, v1
|
|
|
|
:cond_6
|
|
const/16 v1, 0xa
|
|
|
|
if-ne v11, v4, :cond_b
|
|
|
|
const/16 v4, 0x10
|
|
|
|
.line 72
|
|
invoke-static {v5, v4}, Ljava/lang/Character;->digit(CI)I
|
|
|
|
move-result v4
|
|
|
|
if-ltz v4, :cond_7
|
|
|
|
shl-int/lit8 v14, v14, 0x4
|
|
|
|
add-int/2addr v14, v4
|
|
|
|
add-int/lit8 v12, v12, 0x1
|
|
|
|
if-ge v12, v6, :cond_8
|
|
|
|
const/4 v4, 0x2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_7
|
|
if-le v12, v6, :cond_a
|
|
|
|
:cond_8
|
|
add-int/lit8 v4, v2, 0x1
|
|
|
|
int-to-char v11, v14
|
|
|
|
.line 82
|
|
aput-char v11, v10, v2
|
|
|
|
if-eq v5, v1, :cond_9
|
|
|
|
move v2, v4
|
|
|
|
const/4 v4, 0x2
|
|
|
|
:goto_3
|
|
const/4 v11, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_9
|
|
move v2, v4
|
|
|
|
const/4 v11, 0x0
|
|
|
|
goto :goto_4
|
|
|
|
.line 79
|
|
:cond_a
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v1, "Invalid Unicode sequence: illegal character"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_b
|
|
:goto_4
|
|
const/16 v4, 0xd
|
|
|
|
if-ne v11, v7, :cond_13
|
|
|
|
if-eq v5, v1, :cond_12
|
|
|
|
if-eq v5, v4, :cond_11
|
|
|
|
const/16 v11, 0x62
|
|
|
|
if-eq v5, v11, :cond_f
|
|
|
|
const/16 v11, 0x66
|
|
|
|
if-eq v5, v11, :cond_e
|
|
|
|
const/16 v11, 0x6e
|
|
|
|
if-eq v5, v11, :cond_d
|
|
|
|
const/16 v1, 0x72
|
|
|
|
if-eq v5, v1, :cond_c
|
|
|
|
packed-switch v5, :pswitch_data_0
|
|
|
|
goto :goto_5
|
|
|
|
:pswitch_0
|
|
const/4 v4, 0x2
|
|
|
|
const/4 v11, 0x2
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
goto/16 :goto_1
|
|
|
|
:pswitch_1
|
|
const/16 v5, 0x9
|
|
|
|
goto :goto_5
|
|
|
|
:cond_c
|
|
const/16 v5, 0xd
|
|
|
|
goto :goto_5
|
|
|
|
:cond_d
|
|
const/16 v5, 0xa
|
|
|
|
goto :goto_5
|
|
|
|
:cond_e
|
|
const/16 v5, 0xc
|
|
|
|
goto :goto_5
|
|
|
|
:cond_f
|
|
const/16 v5, 0x8
|
|
|
|
:goto_5
|
|
const/4 v1, 0x5
|
|
|
|
:cond_10
|
|
:goto_6
|
|
const/4 v11, 0x0
|
|
|
|
goto/16 :goto_b
|
|
|
|
:cond_11
|
|
const/4 v4, 0x2
|
|
|
|
const/4 v11, 0x3
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_12
|
|
const/4 v4, 0x2
|
|
|
|
:goto_7
|
|
const/4 v11, 0x5
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_13
|
|
if-eq v5, v1, :cond_24
|
|
|
|
if-eq v5, v4, :cond_23
|
|
|
|
const/16 v7, 0x21
|
|
|
|
if-eq v5, v7, :cond_17
|
|
|
|
const/16 v7, 0x23
|
|
|
|
if-eq v5, v7, :cond_17
|
|
|
|
const/16 v1, 0x3a
|
|
|
|
if-eq v5, v1, :cond_16
|
|
|
|
const/16 v1, 0x3d
|
|
|
|
if-eq v5, v1, :cond_16
|
|
|
|
const/16 v1, 0x5c
|
|
|
|
if-eq v5, v1, :cond_14
|
|
|
|
goto :goto_9
|
|
|
|
:cond_14
|
|
if-ne v11, v6, :cond_15
|
|
|
|
move v13, v2
|
|
|
|
:cond_15
|
|
const/4 v4, 0x2
|
|
|
|
const/4 v7, 0x1
|
|
|
|
const/4 v11, 0x1
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_16
|
|
if-ne v13, v8, :cond_1a
|
|
|
|
move v13, v2
|
|
|
|
const/4 v4, 0x2
|
|
|
|
const/4 v7, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_17
|
|
if-eqz v15, :cond_1a
|
|
|
|
.line 122
|
|
:cond_18
|
|
invoke-virtual {v3}, Ljava/io/BufferedReader;->read()I
|
|
|
|
move-result v5
|
|
|
|
if-ne v5, v8, :cond_19
|
|
|
|
goto :goto_8
|
|
|
|
:cond_19
|
|
int-to-char v5, v5
|
|
|
|
if-eq v5, v4, :cond_1e
|
|
|
|
if-ne v5, v1, :cond_18
|
|
|
|
:goto_8
|
|
goto :goto_a
|
|
|
|
.line 169
|
|
:cond_1a
|
|
:goto_9
|
|
invoke-static {v5}, Ljava/lang/Character;->isSpace(C)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1f
|
|
|
|
const/4 v1, 0x3
|
|
|
|
if-ne v11, v1, :cond_1b
|
|
|
|
const/4 v11, 0x5
|
|
|
|
:cond_1b
|
|
if-eqz v2, :cond_1d
|
|
|
|
if-eq v2, v13, :cond_1d
|
|
|
|
const/4 v1, 0x5
|
|
|
|
if-ne v11, v1, :cond_1c
|
|
|
|
goto :goto_a
|
|
|
|
:cond_1c
|
|
if-ne v13, v8, :cond_20
|
|
|
|
const/4 v4, 0x2
|
|
|
|
const/4 v7, 0x1
|
|
|
|
const/4 v11, 0x4
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_1d
|
|
const/4 v1, 0x5
|
|
|
|
:cond_1e
|
|
:goto_a
|
|
const/4 v4, 0x2
|
|
|
|
const/4 v7, 0x1
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_1f
|
|
const/4 v1, 0x5
|
|
|
|
:cond_20
|
|
if-eq v11, v1, :cond_10
|
|
|
|
const/4 v4, 0x3
|
|
|
|
if-ne v11, v4, :cond_21
|
|
|
|
goto :goto_6
|
|
|
|
:cond_21
|
|
:goto_b
|
|
if-ne v11, v6, :cond_22
|
|
|
|
move v13, v2
|
|
|
|
const/4 v11, 0x0
|
|
|
|
:cond_22
|
|
add-int/lit8 v4, v2, 0x1
|
|
|
|
.line 191
|
|
aput-char v5, v10, v2
|
|
|
|
move v2, v4
|
|
|
|
const/4 v4, 0x2
|
|
|
|
const/4 v7, 0x1
|
|
|
|
const/4 v15, 0x0
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_23
|
|
const/4 v1, 0x5
|
|
|
|
const/4 v4, 0x3
|
|
|
|
goto :goto_c
|
|
|
|
:cond_24
|
|
const/4 v1, 0x5
|
|
|
|
const/4 v4, 0x3
|
|
|
|
if-ne v11, v4, :cond_25
|
|
|
|
const/4 v4, 0x2
|
|
|
|
const/4 v7, 0x1
|
|
|
|
goto :goto_7
|
|
|
|
:cond_25
|
|
:goto_c
|
|
if-gtz v2, :cond_26
|
|
|
|
if-nez v2, :cond_28
|
|
|
|
if-nez v13, :cond_28
|
|
|
|
:cond_26
|
|
if-ne v13, v8, :cond_27
|
|
|
|
move v13, v2
|
|
|
|
.line 147
|
|
:cond_27
|
|
new-instance v5, Ljava/lang/String;
|
|
|
|
invoke-direct {v5, v10, v9, v2}, Ljava/lang/String;-><init>([CII)V
|
|
|
|
.line 148
|
|
invoke-virtual {v5, v9, v13}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v5, v13}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v0, v2, v5}, Lcom/badlogic/gdx/utils/ObjectMap;->a(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_28
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v4, 0x2
|
|
|
|
const/4 v7, 0x1
|
|
|
|
const/4 v11, 0x0
|
|
|
|
const/4 v13, -0x1
|
|
|
|
goto/16 :goto_0
|
|
|
|
.line 51
|
|
:cond_29
|
|
new-instance v0, Ljava/lang/NullPointerException;
|
|
|
|
const-string v1, "Reader cannot be null"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
.line 50
|
|
:cond_2a
|
|
new-instance v0, Ljava/lang/NullPointerException;
|
|
|
|
const-string v1, "ObjectMap cannot be null"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x74
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|