770 lines
16 KiB
Smali
770 lines
16 KiB
Smali
.class final Lokhttp3/internal/j/c;
|
|
.super Ljava/lang/Object;
|
|
.source "WebSocketReader.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lokhttp3/internal/j/c$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final byc:Z
|
|
|
|
.field final byd:Lokhttp3/internal/j/c$a;
|
|
|
|
.field bye:J
|
|
|
|
.field byf:Z
|
|
|
|
.field byg:Z
|
|
|
|
.field private final byh:Lokio/c;
|
|
|
|
.field final byi:Lokio/c;
|
|
|
|
.field private final byj:[B
|
|
|
|
.field private final byk:Lokio/c$a;
|
|
|
|
.field final lY:Lokio/d;
|
|
|
|
.field opcode:I
|
|
|
|
.field w:Z
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(ZLokio/d;Lokhttp3/internal/j/c$a;)V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Lokio/c;
|
|
|
|
invoke-direct {v0}, Lokio/c;-><init>()V
|
|
|
|
iput-object v0, p0, Lokhttp3/internal/j/c;->byh:Lokio/c;
|
|
|
|
new-instance v0, Lokio/c;
|
|
|
|
invoke-direct {v0}, Lokio/c;-><init>()V
|
|
|
|
iput-object v0, p0, Lokhttp3/internal/j/c;->byi:Lokio/c;
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
iput-boolean p1, p0, Lokhttp3/internal/j/c;->byc:Z
|
|
|
|
iput-object p2, p0, Lokhttp3/internal/j/c;->lY:Lokio/d;
|
|
|
|
iput-object p3, p0, Lokhttp3/internal/j/c;->byd:Lokhttp3/internal/j/c$a;
|
|
|
|
const/4 p2, 0x0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
move-object p3, p2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p3, 0x4
|
|
|
|
new-array p3, p3, [B
|
|
|
|
:goto_0
|
|
iput-object p3, p0, Lokhttp3/internal/j/c;->byj:[B
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
new-instance p2, Lokio/c$a;
|
|
|
|
invoke-direct {p2}, Lokio/c$a;-><init>()V
|
|
|
|
:goto_1
|
|
iput-object p2, p0, Lokhttp3/internal/j/c;->byk:Lokio/c$a;
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
const-string p2, "source == null"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private Hb()V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
:goto_0
|
|
iget-boolean v0, p0, Lokhttp3/internal/j/c;->w:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-virtual {p0}, Lokhttp3/internal/j/c;->GZ()V
|
|
|
|
iget-boolean v0, p0, Lokhttp3/internal/j/c;->byg:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {p0}, Lokhttp3/internal/j/c;->Ha()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method final GZ()V
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-boolean v0, p0, Lokhttp3/internal/j/c;->w:Z
|
|
|
|
if-nez v0, :cond_11
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/j/c;->lY:Lokio/d;
|
|
|
|
invoke-interface {v0}, Lokio/d;->timeout()Lokio/s;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokio/s;->HC()J
|
|
|
|
move-result-wide v0
|
|
|
|
iget-object v2, p0, Lokhttp3/internal/j/c;->lY:Lokio/d;
|
|
|
|
invoke-interface {v2}, Lokio/d;->timeout()Lokio/s;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Lokio/s;->HF()Lokio/s;
|
|
|
|
:try_start_0
|
|
iget-object v2, p0, Lokhttp3/internal/j/c;->lY:Lokio/d;
|
|
|
|
invoke-interface {v2}, Lokio/d;->readByte()B
|
|
|
|
move-result v2
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
and-int/lit16 v2, v2, 0xff
|
|
|
|
iget-object v3, p0, Lokhttp3/internal/j/c;->lY:Lokio/d;
|
|
|
|
invoke-interface {v3}, Lokio/d;->timeout()Lokio/s;
|
|
|
|
move-result-object v3
|
|
|
|
sget-object v4, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-virtual {v3, v0, v1, v4}, Lokio/s;->d(JLjava/util/concurrent/TimeUnit;)Lokio/s;
|
|
|
|
and-int/lit8 v0, v2, 0xf
|
|
|
|
iput v0, p0, Lokhttp3/internal/j/c;->opcode:I
|
|
|
|
and-int/lit16 v0, v2, 0x80
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
iput-boolean v0, p0, Lokhttp3/internal/j/c;->byf:Z
|
|
|
|
and-int/lit8 v0, v2, 0x8
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
iput-boolean v0, p0, Lokhttp3/internal/j/c;->byg:Z
|
|
|
|
iget-boolean v0, p0, Lokhttp3/internal/j/c;->byg:Z
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
iget-boolean v0, p0, Lokhttp3/internal/j/c;->byf:Z
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
new-instance v0, Ljava/net/ProtocolException;
|
|
|
|
const-string v1, "Control frames must be final."
|
|
|
|
invoke-direct {v0, v1}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_3
|
|
:goto_2
|
|
and-int/lit8 v0, v2, 0x40
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
const/4 v0, 0x0
|
|
|
|
:goto_3
|
|
and-int/lit8 v4, v2, 0x20
|
|
|
|
if-eqz v4, :cond_5
|
|
|
|
const/4 v4, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_5
|
|
const/4 v4, 0x0
|
|
|
|
:goto_4
|
|
and-int/lit8 v2, v2, 0x10
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_5
|
|
|
|
:cond_6
|
|
const/4 v2, 0x0
|
|
|
|
:goto_5
|
|
if-nez v0, :cond_10
|
|
|
|
if-nez v4, :cond_10
|
|
|
|
if-nez v2, :cond_10
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/j/c;->lY:Lokio/d;
|
|
|
|
invoke-interface {v0}, Lokio/d;->readByte()B
|
|
|
|
move-result v0
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
and-int/lit16 v2, v0, 0x80
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
goto :goto_6
|
|
|
|
:cond_7
|
|
const/4 v1, 0x0
|
|
|
|
:goto_6
|
|
iget-boolean v2, p0, Lokhttp3/internal/j/c;->byc:Z
|
|
|
|
if-ne v1, v2, :cond_9
|
|
|
|
new-instance v0, Ljava/net/ProtocolException;
|
|
|
|
if-eqz v2, :cond_8
|
|
|
|
const-string v1, "Server-sent frames must not be masked."
|
|
|
|
goto :goto_7
|
|
|
|
:cond_8
|
|
const-string v1, "Client-sent frames must be masked."
|
|
|
|
:goto_7
|
|
invoke-direct {v0, v1}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_9
|
|
and-int/lit8 v0, v0, 0x7f
|
|
|
|
int-to-long v2, v0
|
|
|
|
iput-wide v2, p0, Lokhttp3/internal/j/c;->bye:J
|
|
|
|
iget-wide v2, p0, Lokhttp3/internal/j/c;->bye:J
|
|
|
|
const-wide/16 v4, 0x7e
|
|
|
|
cmp-long v0, v2, v4
|
|
|
|
if-nez v0, :cond_a
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/j/c;->lY:Lokio/d;
|
|
|
|
invoke-interface {v0}, Lokio/d;->readShort()S
|
|
|
|
move-result v0
|
|
|
|
int-to-long v2, v0
|
|
|
|
const-wide/32 v4, 0xffff
|
|
|
|
and-long/2addr v2, v4
|
|
|
|
iput-wide v2, p0, Lokhttp3/internal/j/c;->bye:J
|
|
|
|
goto :goto_8
|
|
|
|
:cond_a
|
|
const-wide/16 v4, 0x7f
|
|
|
|
cmp-long v0, v2, v4
|
|
|
|
if-nez v0, :cond_c
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/j/c;->lY:Lokio/d;
|
|
|
|
invoke-interface {v0}, Lokio/d;->readLong()J
|
|
|
|
move-result-wide v2
|
|
|
|
iput-wide v2, p0, Lokhttp3/internal/j/c;->bye:J
|
|
|
|
iget-wide v2, p0, Lokhttp3/internal/j/c;->bye:J
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
cmp-long v0, v2, v4
|
|
|
|
if-ltz v0, :cond_b
|
|
|
|
goto :goto_8
|
|
|
|
:cond_b
|
|
new-instance v0, Ljava/net/ProtocolException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "Frame length 0x"
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
iget-wide v2, p0, Lokhttp3/internal/j/c;->bye:J
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->toHexString(J)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, " > 0x7FFFFFFFFFFFFFFF"
|
|
|
|
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-direct {v0, v1}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_c
|
|
:goto_8
|
|
iget-boolean v0, p0, Lokhttp3/internal/j/c;->byg:Z
|
|
|
|
if-eqz v0, :cond_e
|
|
|
|
iget-wide v2, p0, Lokhttp3/internal/j/c;->bye:J
|
|
|
|
const-wide/16 v4, 0x7d
|
|
|
|
cmp-long v0, v2, v4
|
|
|
|
if-gtz v0, :cond_d
|
|
|
|
goto :goto_9
|
|
|
|
:cond_d
|
|
new-instance v0, Ljava/net/ProtocolException;
|
|
|
|
const-string v1, "Control frame must be less than 125B."
|
|
|
|
invoke-direct {v0, v1}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_e
|
|
:goto_9
|
|
if-eqz v1, :cond_f
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/j/c;->lY:Lokio/d;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/j/c;->byj:[B
|
|
|
|
invoke-interface {v0, v1}, Lokio/d;->readFully([B)V
|
|
|
|
:cond_f
|
|
return-void
|
|
|
|
:cond_10
|
|
new-instance v0, Ljava/net/ProtocolException;
|
|
|
|
const-string v1, "Reserved flags are unsupported."
|
|
|
|
invoke-direct {v0, v1}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:catchall_0
|
|
move-exception v2
|
|
|
|
iget-object v3, p0, Lokhttp3/internal/j/c;->lY:Lokio/d;
|
|
|
|
invoke-interface {v3}, Lokio/d;->timeout()Lokio/s;
|
|
|
|
move-result-object v3
|
|
|
|
sget-object v4, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-virtual {v3, v0, v1, v4}, Lokio/s;->d(JLjava/util/concurrent/TimeUnit;)Lokio/s;
|
|
|
|
throw v2
|
|
|
|
:cond_11
|
|
new-instance v0, Ljava/io/IOException;
|
|
|
|
const-string v1, "closed"
|
|
|
|
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method final Ha()V
|
|
.locals 8
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-wide v0, p0, Lokhttp3/internal/j/c;->bye:J
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
if-lez v4, :cond_0
|
|
|
|
iget-object v4, p0, Lokhttp3/internal/j/c;->lY:Lokio/d;
|
|
|
|
iget-object v5, p0, Lokhttp3/internal/j/c;->byh:Lokio/c;
|
|
|
|
invoke-interface {v4, v5, v0, v1}, Lokio/d;->b(Lokio/c;J)V
|
|
|
|
iget-boolean v0, p0, Lokhttp3/internal/j/c;->byc:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/j/c;->byh:Lokio/c;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/j/c;->byk:Lokio/c$a;
|
|
|
|
invoke-virtual {v0, v1}, Lokio/c;->a(Lokio/c$a;)Lokio/c$a;
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/j/c;->byk:Lokio/c$a;
|
|
|
|
invoke-virtual {v0, v2, v3}, Lokio/c$a;->aG(J)I
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/j/c;->byk:Lokio/c$a;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/j/c;->byj:[B
|
|
|
|
invoke-static {v0, v1}, Lokhttp3/internal/j/b;->a(Lokio/c$a;[B)V
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/j/c;->byk:Lokio/c$a;
|
|
|
|
invoke-virtual {v0}, Lokio/c$a;->close()V
|
|
|
|
:cond_0
|
|
iget v0, p0, Lokhttp3/internal/j/c;->opcode:I
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
new-instance v0, Ljava/net/ProtocolException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "Unknown control opcode: "
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
iget v2, p0, Lokhttp3/internal/j/c;->opcode:I
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->toHexString(I)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-direct {v0, v1}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:pswitch_0
|
|
iget-object v0, p0, Lokhttp3/internal/j/c;->byd:Lokhttp3/internal/j/c$a;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/j/c;->byh:Lokio/c;
|
|
|
|
invoke-virtual {v1}, Lokio/c;->Gs()Lokio/ByteString;
|
|
|
|
invoke-interface {v0}, Lokhttp3/internal/j/c$a;->GW()V
|
|
|
|
return-void
|
|
|
|
:pswitch_1
|
|
iget-object v0, p0, Lokhttp3/internal/j/c;->byd:Lokhttp3/internal/j/c$a;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/j/c;->byh:Lokio/c;
|
|
|
|
invoke-virtual {v1}, Lokio/c;->Gs()Lokio/ByteString;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v0, v1}, Lokhttp3/internal/j/c$a;->g(Lokio/ByteString;)V
|
|
|
|
return-void
|
|
|
|
:pswitch_2
|
|
const/16 v0, 0x3ed
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/j/c;->byh:Lokio/c;
|
|
|
|
iget-wide v4, v1, Lokio/c;->size:J
|
|
|
|
const-wide/16 v6, 0x1
|
|
|
|
cmp-long v1, v4, v6
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
cmp-long v1, v4, v2
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/j/c;->byh:Lokio/c;
|
|
|
|
invoke-virtual {v0}, Lokio/c;->readShort()S
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/j/c;->byh:Lokio/c;
|
|
|
|
invoke-virtual {v1}, Lokio/c;->Ho()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v0}, Lokhttp3/internal/j/b;->dr(I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
new-instance v0, Ljava/net/ProtocolException;
|
|
|
|
invoke-direct {v0, v2}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
const-string v1, ""
|
|
|
|
:goto_0
|
|
iget-object v2, p0, Lokhttp3/internal/j/c;->byd:Lokhttp3/internal/j/c$a;
|
|
|
|
invoke-interface {v2, v0, v1}, Lokhttp3/internal/j/c$a;->f(ILjava/lang/String;)V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lokhttp3/internal/j/c;->w:Z
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
new-instance v0, Ljava/net/ProtocolException;
|
|
|
|
const-string v1, "Malformed close payload length of 1."
|
|
|
|
invoke-direct {v0, v1}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x8
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method final Hc()V
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
:goto_0
|
|
iget-boolean v0, p0, Lokhttp3/internal/j/c;->w:Z
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
iget-wide v0, p0, Lokhttp3/internal/j/c;->bye:J
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
if-lez v4, :cond_0
|
|
|
|
iget-object v2, p0, Lokhttp3/internal/j/c;->lY:Lokio/d;
|
|
|
|
iget-object v3, p0, Lokhttp3/internal/j/c;->byi:Lokio/c;
|
|
|
|
invoke-interface {v2, v3, v0, v1}, Lokio/d;->b(Lokio/c;J)V
|
|
|
|
iget-boolean v0, p0, Lokhttp3/internal/j/c;->byc:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/j/c;->byi:Lokio/c;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/j/c;->byk:Lokio/c$a;
|
|
|
|
invoke-virtual {v0, v1}, Lokio/c;->a(Lokio/c$a;)Lokio/c$a;
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/j/c;->byk:Lokio/c$a;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/j/c;->byi:Lokio/c;
|
|
|
|
iget-wide v1, v1, Lokio/c;->size:J
|
|
|
|
iget-wide v3, p0, Lokhttp3/internal/j/c;->bye:J
|
|
|
|
sub-long/2addr v1, v3
|
|
|
|
invoke-virtual {v0, v1, v2}, Lokio/c$a;->aG(J)I
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/j/c;->byk:Lokio/c$a;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/j/c;->byj:[B
|
|
|
|
invoke-static {v0, v1}, Lokhttp3/internal/j/b;->a(Lokio/c$a;[B)V
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/j/c;->byk:Lokio/c$a;
|
|
|
|
invoke-virtual {v0}, Lokio/c$a;->close()V
|
|
|
|
:cond_0
|
|
iget-boolean v0, p0, Lokhttp3/internal/j/c;->byf:Z
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
invoke-direct {p0}, Lokhttp3/internal/j/c;->Hb()V
|
|
|
|
iget v0, p0, Lokhttp3/internal/j/c;->opcode:I
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
new-instance v0, Ljava/net/ProtocolException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "Expected continuation opcode. Got: "
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
iget v2, p0, Lokhttp3/internal/j/c;->opcode:I
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->toHexString(I)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-direct {v0, v1}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
return-void
|
|
|
|
:cond_3
|
|
new-instance v0, Ljava/io/IOException;
|
|
|
|
const-string v1, "closed"
|
|
|
|
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
goto :goto_2
|
|
|
|
:goto_1
|
|
throw v0
|
|
|
|
:goto_2
|
|
goto :goto_1
|
|
.end method
|