.class public Lokhttp3/internal/http1/Http1ExchangeCodec$UnknownLengthSource; .super Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lokhttp3/internal/http1/Http1ExchangeCodec; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x1 name = "UnknownLengthSource" .end annotation # instance fields .field public inputExhausted:Z .field public final synthetic this$0:Lokhttp3/internal/http1/Http1ExchangeCodec; # direct methods .method public constructor (Lokhttp3/internal/http1/Http1ExchangeCodec;)V .locals 1 iput-object p1, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$UnknownLengthSource;->this$0:Lokhttp3/internal/http1/Http1ExchangeCodec; const/4 v0, 0x0 .line 520 invoke-direct {p0, p1, v0}, Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;->(Lokhttp3/internal/http1/Http1ExchangeCodec;Lokhttp3/internal/http1/Http1ExchangeCodec$1;)V return-void .end method .method public synthetic constructor (Lokhttp3/internal/http1/Http1ExchangeCodec;Lokhttp3/internal/http1/Http1ExchangeCodec$1;)V .locals 0 .line 520 invoke-direct {p0, p1}, Lokhttp3/internal/http1/Http1ExchangeCodec$UnknownLengthSource;->(Lokhttp3/internal/http1/Http1ExchangeCodec;)V return-void .end method # virtual methods .method public close()V .locals 1 iget-boolean v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;->closed:Z if-eqz v0, :cond_0 return-void :cond_0 iget-boolean v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$UnknownLengthSource;->inputExhausted:Z if-nez v0, :cond_1 .line 541 invoke-virtual {p0}, Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;->responseBodyComplete()V :cond_1 const/4 v0, 0x1 iput-boolean v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;->closed:Z return-void .end method .method public read(Lokio/Buffer;J)J .locals 3 const-wide/16 v0, 0x0 cmp-long v0, p2, v0 if-ltz v0, :cond_3 iget-boolean v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;->closed:Z if-nez v0, :cond_2 iget-boolean v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$UnknownLengthSource;->inputExhausted:Z const-wide/16 v1, -0x1 if-eqz v0, :cond_0 return-wide v1 .line 529 :cond_0 invoke-super {p0, p1, p2, p3}, Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;->read(Lokio/Buffer;J)J move-result-wide p1 cmp-long p3, p1, v1 if-nez p3, :cond_1 const/4 p1, 0x1 iput-boolean p1, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$UnknownLengthSource;->inputExhausted:Z .line 532 invoke-virtual {p0}, Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;->responseBodyComplete()V return-wide v1 :cond_1 return-wide p1 .line 526 :cond_2 new-instance p1, Ljava/lang/IllegalStateException; const-string p2, "closed" invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p1 .line 525 :cond_3 new-instance p1, Ljava/lang/IllegalArgumentException; new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V const-string v1, "byteCount < 0: " invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v0, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p2 invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .end method