.class public final Lokio/Pipe$source$1; .super Ljava/lang/Object; .source "Pipe.kt" # interfaces .implements Lokio/Source; # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lokio/Pipe;->(J)V .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = null .end annotation .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nPipe.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Pipe.kt\nokio/Pipe$source$1\n+ 2 -Platform.kt\nokio/-Platform\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,248:1\n28#2:249\n28#2:251\n1#3:250\n*E\n*S KotlinDebug\n*F\n+ 1 Pipe.kt\nokio/Pipe$source$1\n*L\n128#1:249\n145#1:251\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; bv = { 0x1, 0x0, 0x3 } d1 = { "\u0000%\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002*\u0001\u0000\u0008\n\u0018\u00002\u00020\u0001J\u0008\u0010\u0004\u001a\u00020\u0005H\u0016J\u0018\u0010\u0006\u001a\u00020\u00072\u0006\u0010\u0008\u001a\u00020\t2\u0006\u0010\n\u001a\u00020\u0007H\u0016J\u0008\u0010\u0002\u001a\u00020\u0003H\u0016R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u000b" } d2 = { "okio/Pipe$source$1", "Lokio/Source;", "timeout", "Lokio/Timeout;", "close", "", "read", "", "sink", "Lokio/Buffer;", "byteCount", "okio" } k = 0x1 mv = { 0x1, 0x4, 0x0 } .end annotation # instance fields .field final synthetic this$0:Lokio/Pipe; .field private final timeout:Lokio/Timeout; # direct methods .method constructor (Lokio/Pipe;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "()V" } .end annotation iput-object p1, p0, Lokio/Pipe$source$1;->this$0:Lokio/Pipe; .line 124 invoke-direct {p0}, Ljava/lang/Object;->()V .line 125 new-instance p1, Lokio/Timeout; invoke-direct {p1}, Lokio/Timeout;->()V iput-object p1, p0, Lokio/Pipe$source$1;->timeout:Lokio/Timeout; return-void .end method # virtual methods .method public close()V .locals 3 iget-object v0, p0, Lokio/Pipe$source$1;->this$0:Lokio/Pipe; .line 145 invoke-virtual {v0}, Lokio/Pipe;->getBuffer$okio()Lokio/Buffer; move-result-object v0 .line 251 monitor-enter v0 :try_start_0 iget-object v1, p0, Lokio/Pipe$source$1;->this$0:Lokio/Pipe; const/4 v2, 0x1 .line 146 invoke-virtual {v1, v2}, Lokio/Pipe;->setSourceClosed$okio(Z)V iget-object p0, p0, Lokio/Pipe$source$1;->this$0:Lokio/Pipe; .line 147 invoke-virtual {p0}, Lokio/Pipe;->getBuffer$okio()Lokio/Buffer; move-result-object p0 if-eqz p0, :cond_0 check-cast p0, Ljava/lang/Object; invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V .line 148 sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 monitor-exit v0 return-void .line 147 :cond_0 :try_start_1 new-instance p0, Ljava/lang/NullPointerException; const-string v1, "null cannot be cast to non-null type java.lang.Object" invoke-direct {p0, v1}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V throw p0 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 :catchall_0 move-exception p0 .line 148 monitor-exit v0 throw p0 .end method .method public read(Lokio/Buffer;J)J .locals 5 const-string v0, "sink" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object v0, p0, Lokio/Pipe$source$1;->this$0:Lokio/Pipe; .line 128 invoke-virtual {v0}, Lokio/Pipe;->getBuffer$okio()Lokio/Buffer; move-result-object v0 .line 249 monitor-enter v0 :try_start_0 iget-object v1, p0, Lokio/Pipe$source$1;->this$0:Lokio/Pipe; .line 129 invoke-virtual {v1}, Lokio/Pipe;->getSourceClosed$okio()Z move-result v1 xor-int/lit8 v1, v1, 0x1 if-eqz v1, :cond_5 iget-object v1, p0, Lokio/Pipe$source$1;->this$0:Lokio/Pipe; .line 130 invoke-virtual {v1}, Lokio/Pipe;->getCanceled$okio()Z move-result v1 if-nez v1, :cond_4 :goto_0 iget-object v1, p0, Lokio/Pipe$source$1;->this$0:Lokio/Pipe; .line 132 invoke-virtual {v1}, Lokio/Pipe;->getBuffer$okio()Lokio/Buffer; move-result-object v1 invoke-virtual {v1}, Lokio/Buffer;->size()J move-result-wide v1 const-wide/16 v3, 0x0 cmp-long v1, v1, v3 if-nez v1, :cond_2 iget-object v1, p0, Lokio/Pipe$source$1;->this$0:Lokio/Pipe; .line 133 invoke-virtual {v1}, Lokio/Pipe;->getSinkClosed$okio()Z move-result v1 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 if-eqz v1, :cond_0 monitor-exit v0 const-wide/16 p0, -0x1 return-wide p0 :cond_0 :try_start_1 iget-object v1, p0, Lokio/Pipe$source$1;->timeout:Lokio/Timeout; iget-object v2, p0, Lokio/Pipe$source$1;->this$0:Lokio/Pipe; .line 134 invoke-virtual {v2}, Lokio/Pipe;->getBuffer$okio()Lokio/Buffer; move-result-object v2 invoke-virtual {v1, v2}, Lokio/Timeout;->waitUntilNotified(Ljava/lang/Object;)V iget-object v1, p0, Lokio/Pipe$source$1;->this$0:Lokio/Pipe; .line 135 invoke-virtual {v1}, Lokio/Pipe;->getCanceled$okio()Z move-result v1 if-nez v1, :cond_1 goto :goto_0 :cond_1 new-instance p0, Ljava/io/IOException; const-string p1, "canceled" invoke-direct {p0, p1}, Ljava/io/IOException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 :cond_2 iget-object v1, p0, Lokio/Pipe$source$1;->this$0:Lokio/Pipe; .line 138 invoke-virtual {v1}, Lokio/Pipe;->getBuffer$okio()Lokio/Buffer; move-result-object v1 invoke-virtual {v1, p1, p2, p3}, Lokio/Buffer;->read(Lokio/Buffer;J)J move-result-wide p1 iget-object p0, p0, Lokio/Pipe$source$1;->this$0:Lokio/Pipe; .line 139 invoke-virtual {p0}, Lokio/Pipe;->getBuffer$okio()Lokio/Buffer; move-result-object p0 if-eqz p0, :cond_3 check-cast p0, Ljava/lang/Object; invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 .line 140 monitor-exit v0 return-wide p1 .line 139 :cond_3 :try_start_2 new-instance p0, Ljava/lang/NullPointerException; const-string p1, "null cannot be cast to non-null type java.lang.Object" invoke-direct {p0, p1}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V throw p0 .line 130 :cond_4 new-instance p0, Ljava/io/IOException; const-string p1, "canceled" invoke-direct {p0, p1}, Ljava/io/IOException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 :cond_5 const-string p0, "closed" .line 129 new-instance p1, Ljava/lang/IllegalStateException; invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p0 invoke-direct {p1, p0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p1, Ljava/lang/Throwable; throw p1 :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_0 :catchall_0 move-exception p0 .line 140 monitor-exit v0 throw p0 .end method .method public timeout()Lokio/Timeout; .locals 0 iget-object p0, p0, Lokio/Pipe$source$1;->timeout:Lokio/Timeout; return-object p0 .end method