e.smali
.class public final Lorg/apache/commons/io/e;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final synthetic a:I
# direct methods
.method public static constructor <clinit>()V
.registers 3
.line 1
sget-char v0, Ljava/io/File;->separatorChar:C
.line 2
new-instance v0, Lorg/apache/commons/io/output/a;
const/4 v1, 0x4
invoke-direct {v0, v1}, Lorg/apache/commons/io/output/a;-><init>(I)V
.line 3
:try_start_8
new-instance v1, Ljava/io/PrintWriter;
invoke-direct {v1, v0}, Ljava/io/PrintWriter;-><init>(Ljava/io/Writer;)V
:try_end_d
.catchall {:try_start_8 .. :try_end_d} :catchall_23
.line 4
:try_start_d
invoke-virtual {v1}, Ljava/io/PrintWriter;->println()V
.line 5
invoke-virtual {v0}, Lorg/apache/commons/io/output/a;->toString()Ljava/lang/String;
:try_end_13
.catchall {:try_start_d .. :try_end_13} :catchall_17
.line 6
:try_start_13
invoke-virtual {v1}, Ljava/io/PrintWriter;->close()V
:try_end_16
.catchall {:try_start_13 .. :try_end_16} :catchall_23
return-void
:catchall_17
move-exception v0
.line 7
:try_start_18
throw v0
:try_end_19
.catchall {:try_start_18 .. :try_end_19} :catchall_19
:catchall_19
move-exception v2
.line 8
:try_start_1a
invoke-virtual {v1}, Ljava/io/PrintWriter;->close()V
:try_end_1d
.catchall {:try_start_1a .. :try_end_1d} :catchall_1e
goto :goto_22
:catchall_1e
move-exception v1
:try_start_1f
invoke-virtual {v0, v1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
:goto_22
throw v2
:try_end_23
.catchall {:try_start_1f .. :try_end_23} :catchall_23
:catchall_23
move-exception v0
.line 9
:try_start_24
throw v0
:try_end_25
.catchall {:try_start_24 .. :try_end_25} :catchall_25
:catchall_25
move-exception v0
.line 10
throw v0
.end method
.method public static a(Ljava/io/Closeable;)V
.registers 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation
if-eqz p0, :cond_5
:try_start_2
invoke-interface {p0}, Ljava/io/Closeable;->close()V
:try_end_5
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_5} :catch_5
:catch_5
:cond_5
return-void
.end method
.method public static b(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Ljava/lang/String;
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
new-instance v0, Lorg/apache/commons/io/output/a;
invoke-direct {v0}, Lorg/apache/commons/io/output/a;-><init>()V
.line 2
:try_start_5
new-instance v1, Ljava/io/InputStreamReader;
sget v2, Lorg/apache/commons/io/a;->a:I
if-nez p1, :cond_f
.line 3
invoke-static {}, Ljava/nio/charset/Charset;->defaultCharset()Ljava/nio/charset/Charset;
move-result-object p1
.line 4
:cond_f
invoke-direct {v1, p0, p1}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
const/16 p0, 0x1000
new-array p0, p0, [C
.line 5
:goto_16
invoke-virtual {v1, p0}, Ljava/io/Reader;->read([C)I
move-result p1
const/4 v2, -0x1
if-eq v2, p1, :cond_22
const/4 v2, 0x0
.line 6
invoke-virtual {v0, p0, v2, p1}, Lorg/apache/commons/io/output/a;->write([CII)V
goto :goto_16
.line 7
:cond_22
invoke-virtual {v0}, Lorg/apache/commons/io/output/a;->toString()Ljava/lang/String;
move-result-object p0
:try_end_26
.catchall {:try_start_5 .. :try_end_26} :catchall_27
return-object p0
:catchall_27
move-exception p0
.line 8
:try_start_28
throw p0
:try_end_29
.catchall {:try_start_28 .. :try_end_29} :catchall_29
:catchall_29
move-exception p0
.line 9
throw p0
.end method