l.smali
.class final Lcom/squareup/okhttp/internal/http/l;
.super Lcom/squareup/okhttp/internal/http/g;
.source "Http1xStream.java"
# instance fields
.field private bAd:Z
.field private synthetic bzZ:Lcom/squareup/okhttp/internal/http/f;
# direct methods
.method private constructor <init>(Lcom/squareup/okhttp/internal/http/f;)V
.registers 3
.prologue
.line 480
iput-object p1, p0, Lcom/squareup/okhttp/internal/http/l;->bzZ:Lcom/squareup/okhttp/internal/http/f;
const/4 v0, 0x0
invoke-direct {p0, p1, v0}, Lcom/squareup/okhttp/internal/http/g;-><init>(Lcom/squareup/okhttp/internal/http/f;B)V
return-void
.end method
.method synthetic constructor <init>(Lcom/squareup/okhttp/internal/http/f;B)V
.registers 3
.prologue
.line 480
invoke-direct {p0, p1}, Lcom/squareup/okhttp/internal/http/l;-><init>(Lcom/squareup/okhttp/internal/http/f;)V
return-void
.end method
# virtual methods
.method public final close()V
.registers 2
.prologue
.line 499
iget-boolean v0, p0, Lcom/squareup/okhttp/internal/http/l;->closed:Z
if-eqz v0, :cond_5
.line 504
:goto_4
return-void
.line 500
:cond_5
iget-boolean v0, p0, Lcom/squareup/okhttp/internal/http/l;->bAd:Z
if-nez v0, :cond_c
.line 501
invoke-virtual {p0}, Lcom/squareup/okhttp/internal/http/l;->HT()V
.line 503
:cond_c
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/squareup/okhttp/internal/http/l;->closed:Z
goto :goto_4
.end method
.method public final read(Lokio/d;J)J
.registers 10
.prologue
const-wide/16 v0, -0x1
.line 485
const-wide/16 v2, 0x0
cmp-long v2, p2, v2
if-gez v2, :cond_1d
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "byteCount < 0: "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.line 486
:cond_1d
iget-boolean v2, p0, Lcom/squareup/okhttp/internal/http/l;->closed:Z
if-eqz v2, :cond_29
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 487
:cond_29
iget-boolean v2, p0, Lcom/squareup/okhttp/internal/http/l;->bAd:Z
if-eqz v2, :cond_2e
.line 495
:goto_2d
return-wide v0
.line 489
:cond_2e
iget-object v2, p0, Lcom/squareup/okhttp/internal/http/l;->bzZ:Lcom/squareup/okhttp/internal/http/f;
.line 1061
iget-object v2, v2, Lcom/squareup/okhttp/internal/http/f;->byt:Lokio/f;
.line 489
invoke-interface {v2, p1, p2, p3}, Lokio/f;->read(Lokio/d;J)J
move-result-wide v2
.line 490
cmp-long v4, v2, v0
if-nez v4, :cond_41
.line 491
const/4 v2, 0x1
iput-boolean v2, p0, Lcom/squareup/okhttp/internal/http/l;->bAd:Z
.line 492
invoke-virtual {p0}, Lcom/squareup/okhttp/internal/http/l;->HS()V
goto :goto_2d
:cond_41
move-wide v0, v2
.line 495
goto :goto_2d
.end method