今奥全景相机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1014 lines
22 KiB

.class final Lokio/RealBufferedSink;
.super Ljava/lang/Object;
.source "RealBufferedSink.java"
# interfaces
.implements Lokio/BufferedSink;
# instance fields
.field public final buffer:Lokio/Buffer;
.field private closed:Z
.field public final sink:Lokio/Sink;
# direct methods
.method public constructor <init>(Lokio/Sink;)V
.locals 1
.prologue
.line 35
new-instance v0, Lokio/Buffer;
invoke-direct {v0}, Lokio/Buffer;-><init>()V
invoke-direct {p0, p1, v0}, Lokio/RealBufferedSink;-><init>(Lokio/Sink;Lokio/Buffer;)V
.line 36
return-void
.end method
.method public constructor <init>(Lokio/Sink;Lokio/Buffer;)V
.locals 2
.prologue
.line 28
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 29
if-nez p1, :cond_0
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "sink == null"
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.line 30
:cond_0
iput-object p2, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
.line 31
iput-object p1, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink;
.line 32
return-void
.end method
.method static synthetic access$000(Lokio/RealBufferedSink;)Z
.locals 1
.prologue
.line 23
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
return v0
.end method
# virtual methods
.method public buffer()Lokio/Buffer;
.locals 1
.prologue
.line 39
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
return-object v0
.end method
.method public close()V
.locals 6
.prologue
.line 227
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_1
.line 248
:cond_0
:goto_0
return-void
.line 231
:cond_1
const/4 v0, 0x0
.line 233
:try_start_0
iget-object v1, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
iget-wide v2, v1, Lokio/Buffer;->size:J
const-wide/16 v4, 0x0
cmp-long v1, v2, v4
if-lez v1, :cond_2
.line 234
iget-object v1, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink;
iget-object v2, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
iget-object v3, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
iget-wide v4, v3, Lokio/Buffer;->size:J
invoke-interface {v1, v2, v4, v5}, Lokio/Sink;->write(Lokio/Buffer;J)V
:try_end_0
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_1
.line 241
:cond_2
:goto_1
:try_start_1
iget-object v1, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink;
invoke-interface {v1}, Lokio/Sink;->close()V
:try_end_1
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_0
.line 245
:cond_3
:goto_2
const/4 v1, 0x1
iput-boolean v1, p0, Lokio/RealBufferedSink;->closed:Z
.line 247
if-eqz v0, :cond_0
invoke-static {v0}, Lokio/Util;->sneakyRethrow(Ljava/lang/Throwable;)V
goto :goto_0
.line 242
:catch_0
move-exception v1
.line 243
if-nez v0, :cond_3
move-object v0, v1
goto :goto_2
.line 236
:catch_1
move-exception v0
goto :goto_1
.end method
.method public emit()Lokio/BufferedSink;
.locals 4
.prologue
.line 181
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 182
:cond_0
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-virtual {v0}, Lokio/Buffer;->size()J
move-result-wide v0
.line 183
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-lez v2, :cond_1
iget-object v2, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink;
iget-object v3, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-interface {v2, v3, v0, v1}, Lokio/Sink;->write(Lokio/Buffer;J)V
.line 184
:cond_1
return-object p0
.end method
.method public emitCompleteSegments()Lokio/BufferedSink;
.locals 4
.prologue
.line 174
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 175
:cond_0
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-virtual {v0}, Lokio/Buffer;->completeSegmentByteCount()J
move-result-wide v0
.line 176
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-lez v2, :cond_1
iget-object v2, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink;
iget-object v3, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-interface {v2, v3, v0, v1}, Lokio/Sink;->write(Lokio/Buffer;J)V
.line 177
:cond_1
return-object p0
.end method
.method public flush()V
.locals 4
.prologue
.line 219
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 220
:cond_0
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
iget-wide v0, v0, Lokio/Buffer;->size:J
const-wide/16 v2, 0x0
cmp-long v0, v0, v2
if-lez v0, :cond_1
.line 221
iget-object v0, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink;
iget-object v1, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
iget-object v2, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
iget-wide v2, v2, Lokio/Buffer;->size:J
invoke-interface {v0, v1, v2, v3}, Lokio/Sink;->write(Lokio/Buffer;J)V
.line 223
:cond_1
iget-object v0, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink;
invoke-interface {v0}, Lokio/Sink;->flush()V
.line 224
return-void
.end method
.method public outputStream()Ljava/io/OutputStream;
.locals 1
.prologue
.line 188
new-instance v0, Lokio/RealBufferedSink$1;
invoke-direct {v0, p0}, Lokio/RealBufferedSink$1;-><init>(Lokio/RealBufferedSink;)V
return-object v0
.end method
.method public timeout()Lokio/Timeout;
.locals 1
.prologue
.line 251
iget-object v0, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink;
invoke-interface {v0}, Lokio/Sink;->timeout()Lokio/Timeout;
move-result-object v0
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
.prologue
.line 255
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "buffer("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ")"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public write(Lokio/ByteString;)Lokio/BufferedSink;
.locals 2
.prologue
.line 50
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 51
:cond_0
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-virtual {v0, p1}, Lokio/Buffer;->write(Lokio/ByteString;)Lokio/Buffer;
.line 52
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object v0
return-object v0
.end method
.method public write(Lokio/Source;J)Lokio/BufferedSink;
.locals 4
.prologue
.line 110
:goto_0
const-wide/16 v0, 0x0
cmp-long v0, p2, v0
if-lez v0, :cond_1
.line 111
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-interface {p1, v0, p2, p3}, Lokio/Source;->read(Lokio/Buffer;J)J
move-result-wide v0
.line 112
const-wide/16 v2, -0x1
cmp-long v2, v0, v2
if-nez v2, :cond_0
new-instance v0, Ljava/io/EOFException;
invoke-direct {v0}, Ljava/io/EOFException;-><init>()V
throw v0
.line 113
:cond_0
sub-long/2addr p2, v0
.line 114
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
goto :goto_0
.line 116
:cond_1
return-object p0
.end method
.method public write([B)Lokio/BufferedSink;
.locals 2
.prologue
.line 88
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 89
:cond_0
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-virtual {v0, p1}, Lokio/Buffer;->write([B)Lokio/Buffer;
.line 90
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object v0
return-object v0
.end method
.method public write([BII)Lokio/BufferedSink;
.locals 2
.prologue
.line 94
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 95
:cond_0
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-virtual {v0, p1, p2, p3}, Lokio/Buffer;->write([BII)Lokio/Buffer;
.line 96
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object v0
return-object v0
.end method
.method public write(Lokio/Buffer;J)V
.locals 2
.prologue
.line 44
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 45
:cond_0
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-virtual {v0, p1, p2, p3}, Lokio/Buffer;->write(Lokio/Buffer;J)V
.line 46
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
.line 47
return-void
.end method
.method public writeAll(Lokio/Source;)J
.locals 6
.prologue
.line 100
if-nez p1, :cond_0
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "source == null"
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.line 101
:cond_0
const-wide/16 v0, 0x0
.line 102
:goto_0
iget-object v2, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
const-wide/16 v4, 0x800
invoke-interface {p1, v2, v4, v5}, Lokio/Source;->read(Lokio/Buffer;J)J
move-result-wide v2
const-wide/16 v4, -0x1
cmp-long v4, v2, v4
if-eqz v4, :cond_1
.line 103
add-long/2addr v0, v2
.line 104
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
goto :goto_0
.line 106
:cond_1
return-wide v0
.end method
.method public writeByte(I)Lokio/BufferedSink;
.locals 2
.prologue
.line 120
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 121
:cond_0
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-virtual {v0, p1}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
.line 122
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object v0
return-object v0
.end method
.method public writeDecimalLong(J)Lokio/BufferedSink;
.locals 3
.prologue
.line 162
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 163
:cond_0
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-virtual {v0, p1, p2}, Lokio/Buffer;->writeDecimalLong(J)Lokio/Buffer;
.line 164
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object v0
return-object v0
.end method
.method public writeHexadecimalUnsignedLong(J)Lokio/BufferedSink;
.locals 3
.prologue
.line 168
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 169
:cond_0
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-virtual {v0, p1, p2}, Lokio/Buffer;->writeHexadecimalUnsignedLong(J)Lokio/Buffer;
.line 170
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object v0
return-object v0
.end method
.method public writeInt(I)Lokio/BufferedSink;
.locals 2
.prologue
.line 138
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 139
:cond_0
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-virtual {v0, p1}, Lokio/Buffer;->writeInt(I)Lokio/Buffer;
.line 140
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object v0
return-object v0
.end method
.method public writeIntLe(I)Lokio/BufferedSink;
.locals 2
.prologue
.line 144
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 145
:cond_0
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-virtual {v0, p1}, Lokio/Buffer;->writeIntLe(I)Lokio/Buffer;
.line 146
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object v0
return-object v0
.end method
.method public writeLong(J)Lokio/BufferedSink;
.locals 3
.prologue
.line 150
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 151
:cond_0
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-virtual {v0, p1, p2}, Lokio/Buffer;->writeLong(J)Lokio/Buffer;
.line 152
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object v0
return-object v0
.end method
.method public writeLongLe(J)Lokio/BufferedSink;
.locals 3
.prologue
.line 156
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 157
:cond_0
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-virtual {v0, p1, p2}, Lokio/Buffer;->writeLongLe(J)Lokio/Buffer;
.line 158
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object v0
return-object v0
.end method
.method public writeShort(I)Lokio/BufferedSink;
.locals 2
.prologue
.line 126
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 127
:cond_0
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-virtual {v0, p1}, Lokio/Buffer;->writeShort(I)Lokio/Buffer;
.line 128
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object v0
return-object v0
.end method
.method public writeShortLe(I)Lokio/BufferedSink;
.locals 2
.prologue
.line 132
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 133
:cond_0
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-virtual {v0, p1}, Lokio/Buffer;->writeShortLe(I)Lokio/Buffer;
.line 134
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object v0
return-object v0
.end method
.method public writeString(Ljava/lang/String;IILjava/nio/charset/Charset;)Lokio/BufferedSink;
.locals 2
.prologue
.line 82
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 83
:cond_0
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-virtual {v0, p1, p2, p3, p4}, Lokio/Buffer;->writeString(Ljava/lang/String;IILjava/nio/charset/Charset;)Lokio/Buffer;
.line 84
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object v0
return-object v0
.end method
.method public writeString(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/BufferedSink;
.locals 2
.prologue
.line 75
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 76
:cond_0
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-virtual {v0, p1, p2}, Lokio/Buffer;->writeString(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/Buffer;
.line 77
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object v0
return-object v0
.end method
.method public writeUtf8(Ljava/lang/String;)Lokio/BufferedSink;
.locals 2
.prologue
.line 56
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 57
:cond_0
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-virtual {v0, p1}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;)Lokio/Buffer;
.line 58
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object v0
return-object v0
.end method
.method public writeUtf8(Ljava/lang/String;II)Lokio/BufferedSink;
.locals 2
.prologue
.line 63
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 64
:cond_0
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-virtual {v0, p1, p2, p3}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;II)Lokio/Buffer;
.line 65
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object v0
return-object v0
.end method
.method public writeUtf8CodePoint(I)Lokio/BufferedSink;
.locals 2
.prologue
.line 69
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 70
:cond_0
iget-object v0, p0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
invoke-virtual {v0, p1}, Lokio/Buffer;->writeUtf8CodePoint(I)Lokio/Buffer;
.line 71
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object v0
return-object v0
.end method