cez.smali
.class public Ldxoptimizer/cez;
.super Ljava/lang/Object;
.source "StreamUtils.java"
# direct methods
.method public static a(Ljava/io/InputStream;)[B
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.prologue
.line 10
.line 11
const/4 v2, 0x0
.line 13
:try_start_1
new-instance v1, Ljava/io/ByteArrayOutputStream;
const/16 v0, 0x400
invoke-direct {v1, v0}, Ljava/io/ByteArrayOutputStream;-><init>(I)V
:try_end_8
.catchall {:try_start_1 .. :try_end_8} :catchall_27
.line 15
const/16 v0, 0x400
:try_start_a
new-array v0, v0, [B
.line 16
:goto_c
const/4 v2, 0x0
array-length v3, v0
invoke-virtual {p0, v0, v2, v3}, Ljava/io/InputStream;->read([BII)I
move-result v2
const/4 v3, -0x1
if-eq v2, v3, :cond_1f
.line 17
const/4 v3, 0x0
invoke-virtual {v1, v0, v3, v2}, Ljava/io/ByteArrayOutputStream;->write([BII)V
:try_end_19
.catchall {:try_start_a .. :try_end_19} :catchall_1a
goto :goto_c
.line 21
:catchall_1a
move-exception v0
:goto_1b
invoke-static {v1}, Ldxoptimizer/cdp;->a(Ljava/io/Closeable;)V
throw v0
.line 19
:cond_1f
:try_start_1f
invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
:try_end_22
.catchall {:try_start_1f .. :try_end_22} :catchall_1a
move-result-object v0
.line 21
invoke-static {v1}, Ldxoptimizer/cdp;->a(Ljava/io/Closeable;)V
.line 23
return-object v0
.line 21
:catchall_27
move-exception v0
move-object v1, v2
goto :goto_1b
.end method