417 lines
8.8 KiB
Smali
417 lines
8.8 KiB
Smali
.class public Leg/x;
|
|
.super Ljava/io/InputStream;
|
|
.source "LoggingInputStream.java"
|
|
|
|
|
|
# annotations
|
|
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Ljava/io/InputStream;
|
|
|
|
.field public final b:Leg/l0;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/io/InputStream;Leg/l0;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/io/InputStream;-><init>()V
|
|
|
|
.line 2
|
|
iput-object p1, p0, Leg/x;->a:Ljava/io/InputStream;
|
|
|
|
.line 3
|
|
iput-object p2, p0, Leg/x;->b:Leg/l0;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public available()I
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
:try_start_0
|
|
iget-object v0, p0, Leg/x;->a:Ljava/io/InputStream;
|
|
|
|
invoke-virtual {v0}, Ljava/io/InputStream;->available()I
|
|
|
|
move-result v0
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return v0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 2
|
|
iget-object v1, p0, Leg/x;->b:Leg/l0;
|
|
|
|
const-string v2, "[available] I/O error : "
|
|
|
|
invoke-static {v2}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Leg/l0;->d(Ljava/lang/String;)V
|
|
|
|
.line 3
|
|
throw v0
|
|
.end method
|
|
|
|
.method public close()V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
:try_start_0
|
|
iget-object v0, p0, Leg/x;->a:Ljava/io/InputStream;
|
|
|
|
invoke-virtual {v0}, Ljava/io/InputStream;->close()V
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-void
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 2
|
|
iget-object v1, p0, Leg/x;->b:Leg/l0;
|
|
|
|
const-string v2, "[close] I/O error: "
|
|
|
|
invoke-static {v2}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Leg/l0;->d(Ljava/lang/String;)V
|
|
|
|
.line 3
|
|
throw v0
|
|
.end method
|
|
|
|
.method public mark(I)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Ljava/io/InputStream;->mark(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public markSupported()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public read()I
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
:try_start_0
|
|
iget-object v0, p0, Leg/x;->a:Ljava/io/InputStream;
|
|
|
|
invoke-virtual {v0}, Ljava/io/InputStream;->read()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 2
|
|
iget-object v1, p0, Leg/x;->b:Leg/l0;
|
|
|
|
const-string v2, "end of stream"
|
|
|
|
invoke-virtual {v1, v2}, Leg/l0;->d(Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget-object v1, p0, Leg/x;->b:Leg/l0;
|
|
|
|
invoke-virtual {v1, v0}, Leg/l0;->b(I)V
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:goto_0
|
|
return v0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 4
|
|
iget-object v1, p0, Leg/x;->b:Leg/l0;
|
|
|
|
const-string v2, "[read] I/O error: "
|
|
|
|
invoke-static {v2}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Leg/l0;->d(Ljava/lang/String;)V
|
|
|
|
.line 5
|
|
throw v0
|
|
.end method
|
|
|
|
.method public read([B)I
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 6
|
|
:try_start_0
|
|
iget-object v0, p0, Leg/x;->a:Ljava/io/InputStream;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/io/InputStream;->read([B)I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 7
|
|
iget-object p1, p0, Leg/x;->b:Leg/l0;
|
|
|
|
const-string v1, "end of stream"
|
|
|
|
invoke-virtual {p1, v1}, Leg/l0;->d(Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-lez v0, :cond_1
|
|
|
|
.line 8
|
|
iget-object v1, p0, Leg/x;->b:Leg/l0;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v1, p1, v2, v0}, Leg/l0;->f([BII)V
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return v0
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 9
|
|
iget-object v0, p0, Leg/x;->b:Leg/l0;
|
|
|
|
const-string v1, "[read] I/O error: "
|
|
|
|
invoke-static {v1}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p1}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Leg/l0;->d(Ljava/lang/String;)V
|
|
|
|
.line 10
|
|
throw p1
|
|
.end method
|
|
|
|
.method public read([BII)I
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 11
|
|
:try_start_0
|
|
iget-object v0, p0, Leg/x;->a:Ljava/io/InputStream;
|
|
|
|
invoke-virtual {v0, p1, p2, p3}, Ljava/io/InputStream;->read([BII)I
|
|
|
|
move-result p3
|
|
|
|
const/4 v0, -0x1
|
|
|
|
if-ne p3, v0, :cond_0
|
|
|
|
.line 12
|
|
iget-object p1, p0, Leg/x;->b:Leg/l0;
|
|
|
|
const-string p2, "end of stream"
|
|
|
|
invoke-virtual {p1, p2}, Leg/l0;->d(Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-lez p3, :cond_1
|
|
|
|
.line 13
|
|
iget-object v0, p0, Leg/x;->b:Leg/l0;
|
|
|
|
invoke-virtual {v0, p1, p2, p3}, Leg/l0;->f([BII)V
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return p3
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 14
|
|
iget-object p2, p0, Leg/x;->b:Leg/l0;
|
|
|
|
const-string p3, "[read] I/O error: "
|
|
|
|
invoke-static {p3}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-virtual {p1}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-virtual {p2, p3}, Leg/l0;->d(Ljava/lang/String;)V
|
|
|
|
.line 15
|
|
throw p1
|
|
.end method
|
|
|
|
.method public reset()V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-super {p0}, Ljava/io/InputStream;->reset()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public skip(J)J
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
:try_start_0
|
|
invoke-super {p0, p1, p2}, Ljava/io/InputStream;->skip(J)J
|
|
|
|
move-result-wide p1
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-wide p1
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 2
|
|
iget-object p2, p0, Leg/x;->b:Leg/l0;
|
|
|
|
const-string v0, "[skip] I/O error: "
|
|
|
|
invoke-static {v0}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p2, v0}, Leg/l0;->d(Ljava/lang/String;)V
|
|
|
|
.line 3
|
|
throw p1
|
|
.end method
|