2019-02-04 20:08:30 +00:00
|
|
|
.class final Lokio/k;
|
|
|
|
.super Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "RealBufferedSink.java"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lokio/BufferedSink;
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-02-06 20:30:57 +00:00
|
|
|
.field public final bsZ:Lokio/p;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
.field public final bsk:Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
.field closed:Z
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method constructor <init>(Lokio/p;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
new-instance v0, Lokio/c;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Lokio/c;-><init>()V
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iput-object v0, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iput-object p1, p0, Lokio/k;->bsZ:Lokio/p;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
|
|
|
|
const-string v0, "sink == null"
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-02-06 20:30:57 +00:00
|
|
|
.method public final BR()Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v0, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
.method public final BS()Lokio/BufferedSink;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 5
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lokio/k;->closed:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v0, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget-wide v0, v0, Lokio/c;->size:J
|
|
|
|
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
|
|
|
|
if-lez v4, :cond_0
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v2, p0, Lokio/k;->bsZ:Lokio/p;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v3, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-interface {v2, v3, v0, v1}, Lokio/p;->write(Lokio/c;J)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v1, "closed"
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
.method public final Cd()Lokio/BufferedSink;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 5
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lokio/k;->closed:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v0, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {v0}, Lokio/c;->BV()J
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
|
|
|
|
if-lez v4, :cond_0
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v2, p0, Lokio/k;->bsZ:Lokio/p;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v3, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-interface {v2, v3, v0, v1}, Lokio/p;->write(Lokio/c;J)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v1, "closed"
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a(Lokio/q;)J
|
|
|
|
.locals 7
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v2, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-wide/16 v3, 0x2000
|
|
|
|
|
|
|
|
invoke-interface {p1, v2, v3, v4}, Lokio/q;->a(Lokio/c;J)J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
const-wide/16 v4, -0x1
|
|
|
|
|
|
|
|
cmp-long v6, v2, v4
|
|
|
|
|
|
|
|
if-eqz v6, :cond_0
|
|
|
|
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {p0}, Lokio/k;->Cd()Lokio/BufferedSink;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-wide v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
const-string v0, "source == null"
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
2019-02-04 20:29:01 +00:00
|
|
|
|
|
|
|
return-void
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method public final ax(J)Lokio/BufferedSink;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lokio/k;->closed:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v0, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0, p1, p2}, Lokio/c;->aw(J)Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {p0}, Lokio/k;->Cd()Lokio/BufferedSink;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string p2, "closed"
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method public final ay(J)Lokio/BufferedSink;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lokio/k;->closed:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v0, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0, p1, p2}, Lokio/c;->av(J)Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {p0}, Lokio/k;->Cd()Lokio/BufferedSink;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string p2, "closed"
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final close()V
|
|
|
|
.locals 6
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lokio/k;->closed:Z
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v1, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget-wide v1, v1, Lokio/c;->size:J
|
|
|
|
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
|
|
|
|
cmp-long v5, v1, v3
|
|
|
|
|
|
|
|
if-lez v5, :cond_1
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v1, p0, Lokio/k;->bsZ:Lokio/p;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v2, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v3, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget-wide v3, v3, Lokio/c;->size:J
|
|
|
|
|
|
|
|
invoke-interface {v1, v2, v3, v4}, Lokio/p;->write(Lokio/c;J)V
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
:try_start_1
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v1, p0, Lokio/k;->bsZ:Lokio/p;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-interface {v1}, Lokio/p;->close()V
|
|
|
|
:try_end_1
|
|
|
|
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:catch_1
|
|
|
|
move-exception v1
|
|
|
|
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
|
|
|
|
move-object v0, v1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
iput-boolean v1, p0, Lokio/k;->closed:Z
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {v0}, Lokio/s;->w(Ljava/lang/Throwable;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_3
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method public final dm(I)Lokio/BufferedSink;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lokio/k;->closed:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v0, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0, p1}, Lokio/c;->dk(I)Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {p0}, Lokio/k;->Cd()Lokio/BufferedSink;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v0, "closed"
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method public final dn(I)Lokio/BufferedSink;
|
|
|
|
.locals 1
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lokio/k;->closed:Z
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-nez v0, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v0, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0, p1}, Lokio/c;->dj(I)Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {p0}, Lokio/k;->Cd()Lokio/BufferedSink;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return-object p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-02-04 20:32:01 +00:00
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v0, "closed"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
throw p1
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method public final do(I)Lokio/BufferedSink;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lokio/k;->closed:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v0, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0, p1}, Lokio/c;->di(I)Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {p0}, Lokio/k;->Cd()Lokio/BufferedSink;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v0, "closed"
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
.method public final ee(Ljava/lang/String;)Lokio/BufferedSink;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lokio/k;->closed:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v0, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {v0, p1}, Lokio/c;->ed(Ljava/lang/String;)Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {p0}, Lokio/k;->Cd()Lokio/BufferedSink;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v0, "closed"
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method public final flush()V
|
|
|
|
.locals 5
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lokio/k;->closed:Z
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-nez v0, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v0, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
iget-wide v0, v0, Lokio/c;->size:J
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-wide/16 v2, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
cmp-long v4, v0, v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-lez v4, :cond_0
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v0, p0, Lokio/k;->bsZ:Lokio/p;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v1, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
iget-wide v2, v1, Lokio/c;->size:J
|
|
|
|
|
|
|
|
invoke-interface {v0, v1, v2, v3}, Lokio/p;->write(Lokio/c;J)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v0, p0, Lokio/k;->bsZ:Lokio/p;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-interface {v0}, Lokio/p;->flush()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return-void
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_1
|
|
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v1, "closed"
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final i(Lokio/ByteString;)Lokio/BufferedSink;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lokio/k;->closed:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v0, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lokio/c;->g(Lokio/ByteString;)Lokio/c;
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {p0}, Lokio/k;->Cd()Lokio/BufferedSink;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v0, "closed"
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final isOpen()Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lokio/k;->closed:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method public final m([BII)Lokio/BufferedSink;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lokio/k;->closed:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v0, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0, p1, p2, p3}, Lokio/c;->l([BII)Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {p0}, Lokio/k;->Cd()Lokio/BufferedSink;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string p2, "closed"
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final timeout()Lokio/r;
|
|
|
|
.locals 1
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v0, p0, Lokio/k;->bsZ:Lokio/p;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-interface {v0}, Lokio/p;->timeout()Lokio/r;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final toString()Ljava/lang/String;
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, "buffer("
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v1, p0, Lokio/k;->bsZ:Lokio/p;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ")"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final write(Ljava/nio/ByteBuffer;)I
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lokio/k;->closed:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v0, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lokio/c;->write(Ljava/nio/ByteBuffer;)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {p0}, Lokio/k;->Cd()Lokio/BufferedSink;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v0, "closed"
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final write(Lokio/c;J)V
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lokio/k;->closed:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v0, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1, p2, p3}, Lokio/c;->write(Lokio/c;J)V
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {p0}, Lokio/k;->Cd()Lokio/BufferedSink;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string p2, "closed"
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
.method public final z([B)Lokio/BufferedSink;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lokio/k;->closed:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v0, p0, Lokio/k;->bsk:Lokio/c;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lokio/c;->y([B)Lokio/c;
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {p0}, Lokio/k;->Cd()Lokio/BufferedSink;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v0, "closed"
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|