c.smali
.class final Lsg/bigo/b/d/a/a/c;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field static final a:Ljava/nio/charset/Charset;
.field static final b:Ljava/nio/charset/Charset;
# direct methods
.method static constructor <clinit>()V
.registers 1
const-string v0, "US-ASCII"
.line 18
invoke-static {v0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
move-result-object v0
sput-object v0, Lsg/bigo/b/d/a/a/c;->a:Ljava/nio/charset/Charset;
const-string v0, "UTF-8"
.line 19
invoke-static {v0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
move-result-object v0
sput-object v0, Lsg/bigo/b/d/a/a/c;->b:Ljava/nio/charset/Charset;
return-void
.end method
.method static a(Ljava/io/Closeable;)V
.registers 1
.line 57
:try_start_0
invoke-interface {p0}, Ljava/io/Closeable;->close()V
:try_end_3
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_3} :catch_4
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_3} :catch_3
:catch_3
return-void
:catch_4
move-exception p0
.line 59
throw p0
.end method
.method static a(Ljava/io/File;)V
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 40
invoke-virtual {p0}, Ljava/io/File;->listFiles()[Ljava/io/File;
move-result-object v0
if-eqz v0, :cond_2f
.line 44
array-length p0, v0
const/4 v1, 0x0
:goto_8
if-ge v1, p0, :cond_2e
aget-object v2, v0, v1
.line 45
invoke-virtual {v2}, Ljava/io/File;->isDirectory()Z
move-result v3
if-eqz v3, :cond_15
.line 46
invoke-static {v2}, Lsg/bigo/b/d/a/a/c;->a(Ljava/io/File;)V
.line 48
:cond_15
invoke-virtual {v2}, Ljava/io/File;->delete()Z
move-result v3
if-eqz v3, :cond_1e
add-int/lit8 v1, v1, 0x1
goto :goto_8
.line 49
:cond_1e
new-instance p0, Ljava/io/IOException;
invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
const-string v1, "failed to delete file: "
invoke-virtual {v1, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p0
:cond_2e
return-void
.line 42
:cond_2f
new-instance v0, Ljava/io/IOException;
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
const-string v1, "not a readable directory: "
invoke-virtual {v1, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
goto :goto_40
:goto_3f
throw v0
:goto_40
goto :goto_3f
.end method