a.smali

.class final Lcom/cmcm/a/a;
.super Ljava/lang/Object;
.source "FileUtils.java"


# direct methods
.method public static V(Ljava/lang/String;)Ljava/lang/String;
    .registers 5

    .prologue
    const/4 v1, 0x0

    .line 18
    .line 19
    invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_8

    .line 44
    :cond_7
    :goto_7
    return-object v1

    .line 22
    :cond_8
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 23
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_7

    .line 28
    :try_start_13
    new-instance v2, Ljava/io/FileInputStream;

    invoke-direct {v2, v0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
    :try_end_18
    .catch Ljava/lang/Exception; {:try_start_13 .. :try_end_18} :catch_2d
    .catchall {:try_start_13 .. :try_end_18} :catchall_3f

    .line 29
    const/4 v0, 0x4

    :try_start_19
    new-array v3, v0, [B

    .line 30
    invoke-virtual {v2, v3}, Ljava/io/FileInputStream;->read([B)I

    .line 31
    new-instance v0, Ljava/lang/String;

    invoke-direct {v0, v3}, Ljava/lang/String;-><init>([B)V
    :try_end_23
    .catch Ljava/lang/Exception; {:try_start_19 .. :try_end_23} :catch_4e
    .catchall {:try_start_19 .. :try_end_23} :catchall_4c

    .line 37
    :try_start_23
    invoke-virtual {v2}, Ljava/io/FileInputStream;->close()V
    :try_end_26
    .catch Ljava/io/IOException; {:try_start_23 .. :try_end_26} :catch_28

    :goto_26
    move-object v1, v0

    .line 44
    goto :goto_7

    .line 41
    :catch_28
    move-exception v1

    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_26

    .line 33
    :catch_2d
    move-exception v0

    move-object v2, v1

    :goto_2f
    :try_start_2f
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_32
    .catchall {:try_start_2f .. :try_end_32} :catchall_4c

    .line 36
    if-eqz v2, :cond_37

    .line 37
    :try_start_34
    invoke-virtual {v2}, Ljava/io/FileInputStream;->close()V
    :try_end_37
    .catch Ljava/io/IOException; {:try_start_34 .. :try_end_37} :catch_39

    :cond_37
    move-object v0, v1

    .line 42
    goto :goto_26

    .line 41
    :catch_39
    move-exception v0

    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    move-object v0, v1

    .line 43
    goto :goto_26

    .line 35
    :catchall_3f
    move-exception v0

    move-object v2, v1

    .line 36
    :goto_41
    if-eqz v2, :cond_46

    .line 37
    :try_start_43
    invoke-virtual {v2}, Ljava/io/FileInputStream;->close()V
    :try_end_46
    .catch Ljava/io/IOException; {:try_start_43 .. :try_end_46} :catch_47

    .line 42
    :cond_46
    :goto_46
    throw v0

    .line 41
    :catch_47
    move-exception v1

    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_46

    .line 35
    :catchall_4c
    move-exception v0

    goto :goto_41

    .line 33
    :catch_4e
    move-exception v0

    goto :goto_2f
.end method