.class final Lokhttp3/internal/j/d$a; .super Ljava/lang/Object; .source "WebSocketWriter.java" # interfaces .implements Lokio/q; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lokhttp3/internal/j/d; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x10 name = "a" .end annotation # instance fields .field bxV:I .field byk:Z .field final synthetic byl:Lokhttp3/internal/j/d; .field contentLength:J .field w:Z # direct methods .method constructor (Lokhttp3/internal/j/d;)V .locals 0 iput-object p1, p0, Lokhttp3/internal/j/d$a;->byl:Lokhttp3/internal/j/d; invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public final close()V .locals 7 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lokhttp3/internal/j/d$a;->w:Z if-nez v0, :cond_0 iget-object v1, p0, Lokhttp3/internal/j/d$a;->byl:Lokhttp3/internal/j/d; iget v2, p0, Lokhttp3/internal/j/d$a;->bxV:I iget-object v0, v1, Lokhttp3/internal/j/d;->lZ:Lokio/c; iget-wide v3, v0, Lokio/c;->size:J iget-boolean v5, p0, Lokhttp3/internal/j/d$a;->byk:Z const/4 v6, 0x1 invoke-virtual/range {v1 .. v6}, Lokhttp3/internal/j/d;->a(IJZZ)V const/4 v0, 0x1 iput-boolean v0, p0, Lokhttp3/internal/j/d$a;->w:Z iget-object v0, p0, Lokhttp3/internal/j/d$a;->byl:Lokhttp3/internal/j/d; const/4 v1, 0x0 iput-boolean v1, v0, Lokhttp3/internal/j/d;->byj:Z return-void :cond_0 new-instance v0, Ljava/io/IOException; const-string v1, "closed" invoke-direct {v0, v1}, Ljava/io/IOException;->(Ljava/lang/String;)V throw v0 .end method .method public final flush()V .locals 7 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lokhttp3/internal/j/d$a;->w:Z if-nez v0, :cond_0 iget-object v1, p0, Lokhttp3/internal/j/d$a;->byl:Lokhttp3/internal/j/d; iget v2, p0, Lokhttp3/internal/j/d$a;->bxV:I iget-object v0, v1, Lokhttp3/internal/j/d;->lZ:Lokio/c; iget-wide v3, v0, Lokio/c;->size:J iget-boolean v5, p0, Lokhttp3/internal/j/d$a;->byk:Z const/4 v6, 0x0 invoke-virtual/range {v1 .. v6}, Lokhttp3/internal/j/d;->a(IJZZ)V const/4 v0, 0x0 iput-boolean v0, p0, Lokhttp3/internal/j/d$a;->byk:Z return-void :cond_0 new-instance v0, Ljava/io/IOException; const-string v1, "closed" invoke-direct {v0, v1}, Ljava/io/IOException;->(Ljava/lang/String;)V throw v0 .end method .method public final timeout()Lokio/s; .locals 1 iget-object v0, p0, Lokhttp3/internal/j/d$a;->byl:Lokhttp3/internal/j/d; iget-object v0, v0, Lokhttp3/internal/j/d;->btU:Lokio/BufferedSink; invoke-interface {v0}, Lokio/BufferedSink;->timeout()Lokio/s; move-result-object v0 return-object v0 .end method .method public final write(Lokio/c;J)V .locals 6 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lokhttp3/internal/j/d$a;->w:Z if-nez v0, :cond_2 iget-object v0, p0, Lokhttp3/internal/j/d$a;->byl:Lokhttp3/internal/j/d; iget-object v0, v0, Lokhttp3/internal/j/d;->lZ:Lokio/c; invoke-virtual {v0, p1, p2, p3}, Lokio/c;->write(Lokio/c;J)V iget-boolean p1, p0, Lokhttp3/internal/j/d$a;->byk:Z const/4 p2, 0x0 if-eqz p1, :cond_0 iget-wide v0, p0, Lokhttp3/internal/j/d$a;->contentLength:J const-wide/16 v2, -0x1 cmp-long p1, v0, v2 if-eqz p1, :cond_0 iget-object p1, p0, Lokhttp3/internal/j/d$a;->byl:Lokhttp3/internal/j/d; iget-object p1, p1, Lokhttp3/internal/j/d;->lZ:Lokio/c; iget-wide v0, p1, Lokio/c;->size:J iget-wide v2, p0, Lokhttp3/internal/j/d$a;->contentLength:J const-wide/16 v4, 0x2000 sub-long/2addr v2, v4 cmp-long p1, v0, v2 if-lez p1, :cond_0 const/4 p1, 0x1 goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 iget-object p3, p0, Lokhttp3/internal/j/d$a;->byl:Lokhttp3/internal/j/d; iget-object p3, p3, Lokhttp3/internal/j/d;->lZ:Lokio/c; invoke-virtual {p3}, Lokio/c;->Hk()J move-result-wide v2 const-wide/16 v0, 0x0 cmp-long p3, v2, v0 if-lez p3, :cond_1 if-nez p1, :cond_1 iget-object v0, p0, Lokhttp3/internal/j/d$a;->byl:Lokhttp3/internal/j/d; iget v1, p0, Lokhttp3/internal/j/d$a;->bxV:I iget-boolean v4, p0, Lokhttp3/internal/j/d$a;->byk:Z const/4 v5, 0x0 invoke-virtual/range {v0 .. v5}, Lokhttp3/internal/j/d;->a(IJZZ)V iput-boolean p2, p0, Lokhttp3/internal/j/d$a;->byk:Z :cond_1 return-void :cond_2 new-instance p1, Ljava/io/IOException; const-string p2, "closed" invoke-direct {p1, p2}, Ljava/io/IOException;->(Ljava/lang/String;)V throw p1 .end method