.class public final Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink; .super Ljava/lang/Object; .source "SourceFile" # interfaces .implements Lokio/Sink; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lokhttp3/internal/http1/Http1ExchangeCodec; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x11 name = "KnownLengthSink" .end annotation # instance fields .field public closed:Z .field public final synthetic this$0:Lokhttp3/internal/http1/Http1ExchangeCodec; .field public final timeout:Lokio/ForwardingTimeout; # direct methods .method public constructor (Lokhttp3/internal/http1/Http1ExchangeCodec;)V .locals 1 iput-object p1, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->this$0:Lokhttp3/internal/http1/Http1ExchangeCodec; .line 313 invoke-direct {p0}, Ljava/lang/Object;->()V .line 314 new-instance v0, Lokio/ForwardingTimeout; invoke-static {p1}, Lokhttp3/internal/http1/Http1ExchangeCodec;->access$200(Lokhttp3/internal/http1/Http1ExchangeCodec;)Lokio/BufferedSink; move-result-object p1 invoke-interface {p1}, Lokio/Sink;->timeout()Lokio/Timeout; move-result-object p1 invoke-direct {v0, p1}, Lokio/ForwardingTimeout;->(Lokio/Timeout;)V iput-object v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->timeout:Lokio/ForwardingTimeout; return-void .end method .method public synthetic constructor (Lokhttp3/internal/http1/Http1ExchangeCodec;Lokhttp3/internal/http1/Http1ExchangeCodec$1;)V .locals 0 .line 313 invoke-direct {p0, p1}, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->(Lokhttp3/internal/http1/Http1ExchangeCodec;)V return-void .end method # virtual methods .method public close()V .locals 2 iget-boolean v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->closed:Z if-eqz v0, :cond_0 return-void :cond_0 const/4 v0, 0x1 iput-boolean v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->closed:Z iget-object v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->this$0:Lokhttp3/internal/http1/Http1ExchangeCodec; iget-object v1, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->timeout:Lokio/ForwardingTimeout; .line 335 invoke-static {v0, v1}, Lokhttp3/internal/http1/Http1ExchangeCodec;->access$300(Lokhttp3/internal/http1/Http1ExchangeCodec;Lokio/ForwardingTimeout;)V iget-object v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->this$0:Lokhttp3/internal/http1/Http1ExchangeCodec; const/4 v1, 0x3 .line 336 invoke-static {v0, v1}, Lokhttp3/internal/http1/Http1ExchangeCodec;->access$402(Lokhttp3/internal/http1/Http1ExchangeCodec;I)I return-void .end method .method public flush()V .locals 1 iget-boolean v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->closed:Z if-eqz v0, :cond_0 return-void :cond_0 iget-object v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->this$0:Lokhttp3/internal/http1/Http1ExchangeCodec; .line 329 invoke-static {v0}, Lokhttp3/internal/http1/Http1ExchangeCodec;->access$200(Lokhttp3/internal/http1/Http1ExchangeCodec;)Lokio/BufferedSink; move-result-object v0 invoke-interface {v0}, Lokio/BufferedSink;->flush()V return-void .end method .method public timeout()Lokio/Timeout; .locals 1 iget-object v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->timeout:Lokio/ForwardingTimeout; return-object v0 .end method .method public write(Lokio/Buffer;J)V .locals 7 iget-boolean v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->closed:Z if-nez v0, :cond_0 .line 323 invoke-virtual {p1}, Lokio/Buffer;->size()J move-result-wide v1 const-wide/16 v3, 0x0 move-wide v5, p2 invoke-static/range {v1 .. v6}, Lokhttp3/internal/Util;->checkOffsetAndCount(JJJ)V iget-object v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->this$0:Lokhttp3/internal/http1/Http1ExchangeCodec; .line 324 invoke-static {v0}, Lokhttp3/internal/http1/Http1ExchangeCodec;->access$200(Lokhttp3/internal/http1/Http1ExchangeCodec;)Lokio/BufferedSink; move-result-object v0 invoke-interface {v0, p1, p2, p3}, Lokio/Sink;->write(Lokio/Buffer;J)V return-void .line 322 :cond_0 new-instance p1, Ljava/lang/IllegalStateException; const-string p2, "closed" invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p1 .end method