443 lines
7.7 KiB
Smali
443 lines
7.7 KiB
Smali
.class public Lf/j/d/h/f;
|
|
.super Ljava/io/InputStream;
|
|
.source "PooledByteArrayBufferedInputStream.java"
|
|
|
|
|
|
# instance fields
|
|
.field public final d:Ljava/io/InputStream;
|
|
|
|
.field public final e:[B
|
|
|
|
.field public final f:Lf/j/d/i/b;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lf/j/d/i/b<",
|
|
"[B>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public g:I
|
|
|
|
.field public h:I
|
|
|
|
.field public i:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/io/InputStream;[BLf/j/d/i/b;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/io/InputStream;",
|
|
"[B",
|
|
"Lf/j/d/i/b<",
|
|
"[B>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/io/InputStream;-><init>()V
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
iput-object p1, p0, Lf/j/d/h/f;->d:Ljava/io/InputStream;
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
iput-object p2, p0, Lf/j/d/h/f;->e:[B
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
iput-object p3, p0, Lf/j/d/h/f;->f:Lf/j/d/i/b;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput p1, p0, Lf/j/d/h/f;->g:I
|
|
|
|
iput p1, p0, Lf/j/d/h/f;->h:I
|
|
|
|
iput-boolean p1, p0, Lf/j/d/h/f;->i:Z
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/NullPointerException;-><init>()V
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/NullPointerException;-><init>()V
|
|
|
|
throw p1
|
|
|
|
:cond_2
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/NullPointerException;-><init>()V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()Z
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget v0, p0, Lf/j/d/h/f;->h:I
|
|
|
|
iget v1, p0, Lf/j/d/h/f;->g:I
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
return v2
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lf/j/d/h/f;->d:Ljava/io/InputStream;
|
|
|
|
iget-object v1, p0, Lf/j/d/h/f;->e:[B
|
|
|
|
invoke-virtual {v0, v1}, Ljava/io/InputStream;->read([B)I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-gtz v0, :cond_1
|
|
|
|
return v1
|
|
|
|
:cond_1
|
|
iput v0, p0, Lf/j/d/h/f;->g:I
|
|
|
|
iput v1, p0, Lf/j/d/h/f;->h:I
|
|
|
|
return v2
|
|
.end method
|
|
|
|
.method public available()I
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget v0, p0, Lf/j/d/h/f;->h:I
|
|
|
|
iget v1, p0, Lf/j/d/h/f;->g:I
|
|
|
|
if-gt v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
invoke-static {v0}, Ls/a/b/b/a;->b(Z)V
|
|
|
|
invoke-virtual {p0}, Lf/j/d/h/f;->b()V
|
|
|
|
iget v0, p0, Lf/j/d/h/f;->g:I
|
|
|
|
iget v1, p0, Lf/j/d/h/f;->h:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
iget-object v1, p0, Lf/j/d/h/f;->d:Ljava/io/InputStream;
|
|
|
|
invoke-virtual {v1}, Ljava/io/InputStream;->available()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method public final b()V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-boolean v0, p0, Lf/j/d/h/f;->i:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
new-instance v0, Ljava/io/IOException;
|
|
|
|
const-string v1, "stream already closed"
|
|
|
|
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public close()V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-boolean v0, p0, Lf/j/d/h/f;->i:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lf/j/d/h/f;->i:Z
|
|
|
|
iget-object v0, p0, Lf/j/d/h/f;->f:Lf/j/d/i/b;
|
|
|
|
iget-object v1, p0, Lf/j/d/h/f;->e:[B
|
|
|
|
invoke-interface {v0, v1}, Lf/j/d/i/b;->release(Ljava/lang/Object;)V
|
|
|
|
invoke-super {p0}, Ljava/io/InputStream;->close()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public finalize()V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/Throwable;
|
|
}
|
|
.end annotation
|
|
|
|
iget-boolean v0, p0, Lf/j/d/h/f;->i:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
sget-object v0, Lf/j/d/f/a;->a:Lf/j/d/f/c;
|
|
|
|
check-cast v0, Lf/j/d/f/b;
|
|
|
|
const/4 v1, 0x6
|
|
|
|
invoke-virtual {v0, v1}, Lf/j/d/f/b;->a(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
sget-object v0, Lf/j/d/f/a;->a:Lf/j/d/f/c;
|
|
|
|
check-cast v0, Lf/j/d/f/b;
|
|
|
|
const-string v2, "PooledByteInputStream"
|
|
|
|
const-string v3, "Finalized without closing"
|
|
|
|
invoke-virtual {v0, v1, v2, v3}, Lf/j/d/f/b;->a(ILjava/lang/String;Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lf/j/d/h/f;->close()V
|
|
|
|
:cond_1
|
|
invoke-super {p0}, Ljava/lang/Object;->finalize()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public read()I
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget v0, p0, Lf/j/d/h/f;->h:I
|
|
|
|
iget v1, p0, Lf/j/d/h/f;->g:I
|
|
|
|
if-gt v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
invoke-static {v0}, Ls/a/b/b/a;->b(Z)V
|
|
|
|
invoke-virtual {p0}, Lf/j/d/h/f;->b()V
|
|
|
|
invoke-virtual {p0}, Lf/j/d/h/f;->a()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
const/4 v0, -0x1
|
|
|
|
return v0
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Lf/j/d/h/f;->e:[B
|
|
|
|
iget v1, p0, Lf/j/d/h/f;->h:I
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
iput v2, p0, Lf/j/d/h/f;->h:I
|
|
|
|
aget-byte v0, v0, v1
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public read([BII)I
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget v0, p0, Lf/j/d/h/f;->h:I
|
|
|
|
iget v1, p0, Lf/j/d/h/f;->g:I
|
|
|
|
if-gt v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
invoke-static {v0}, Ls/a/b/b/a;->b(Z)V
|
|
|
|
invoke-virtual {p0}, Lf/j/d/h/f;->b()V
|
|
|
|
invoke-virtual {p0}, Lf/j/d/h/f;->a()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
const/4 p1, -0x1
|
|
|
|
return p1
|
|
|
|
:cond_1
|
|
iget v0, p0, Lf/j/d/h/f;->g:I
|
|
|
|
iget v1, p0, Lf/j/d/h/f;->h:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
invoke-static {v0, p3}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p3
|
|
|
|
iget-object v0, p0, Lf/j/d/h/f;->e:[B
|
|
|
|
iget v1, p0, Lf/j/d/h/f;->h:I
|
|
|
|
invoke-static {v0, v1, p1, p2, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
iget p1, p0, Lf/j/d/h/f;->h:I
|
|
|
|
add-int/2addr p1, p3
|
|
|
|
iput p1, p0, Lf/j/d/h/f;->h:I
|
|
|
|
return p3
|
|
.end method
|
|
|
|
.method public skip(J)J
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget v0, p0, Lf/j/d/h/f;->h:I
|
|
|
|
iget v1, p0, Lf/j/d/h/f;->g:I
|
|
|
|
if-gt v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
invoke-static {v0}, Ls/a/b/b/a;->b(Z)V
|
|
|
|
invoke-virtual {p0}, Lf/j/d/h/f;->b()V
|
|
|
|
iget v0, p0, Lf/j/d/h/f;->g:I
|
|
|
|
iget v1, p0, Lf/j/d/h/f;->h:I
|
|
|
|
sub-int v2, v0, v1
|
|
|
|
int-to-long v2, v2
|
|
|
|
cmp-long v4, v2, p1
|
|
|
|
if-ltz v4, :cond_1
|
|
|
|
int-to-long v0, v1
|
|
|
|
add-long/2addr v0, p1
|
|
|
|
long-to-int v1, v0
|
|
|
|
iput v1, p0, Lf/j/d/h/f;->h:I
|
|
|
|
return-wide p1
|
|
|
|
:cond_1
|
|
iput v0, p0, Lf/j/d/h/f;->h:I
|
|
|
|
iget-object v0, p0, Lf/j/d/h/f;->d:Ljava/io/InputStream;
|
|
|
|
sub-long/2addr p1, v2
|
|
|
|
invoke-virtual {v0, p1, p2}, Ljava/io/InputStream;->skip(J)J
|
|
|
|
move-result-wide p1
|
|
|
|
add-long/2addr p1, v2
|
|
|
|
return-wide p1
|
|
.end method
|