.class final Lcom/mbridge/msdk/thrid/okio/RealBufferedSink; .super Ljava/lang/Object; .source "SourceFile" # interfaces .implements Lcom/mbridge/msdk/thrid/okio/BufferedSink; # instance fields .field public final buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .field closed:Z .field public final sink:Lcom/mbridge/msdk/thrid/okio/Sink; # direct methods .method public constructor (Lcom/mbridge/msdk/thrid/okio/Sink;)V .locals 1 .line 29 invoke-direct {p0}, Ljava/lang/Object;->()V .line 25 new-instance v0, Lcom/mbridge/msdk/thrid/okio/Buffer; invoke-direct {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->()V iput-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; if-eqz p1, :cond_0 iput-object p1, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->sink:Lcom/mbridge/msdk/thrid/okio/Sink; return-void .line 30 :cond_0 new-instance p1, Ljava/lang/NullPointerException; const-string v0, "sink == null" invoke-direct {p1, v0}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V throw p1 .end method # virtual methods .method public buffer()Lcom/mbridge/msdk/thrid/okio/Buffer; .locals 1 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; return-object v0 .end method .method public close()V .locals 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-eqz v0, :cond_0 return-void :cond_0 :try_start_0 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 240 iget-wide v1, v0, Lcom/mbridge/msdk/thrid/okio/Buffer;->size:J const-wide/16 v3, 0x0 cmp-long v3, v1, v3 if-lez v3, :cond_1 iget-object v3, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->sink:Lcom/mbridge/msdk/thrid/okio/Sink; .line 241 invoke-interface {v3, v0, v1, v2}, Lcom/mbridge/msdk/thrid/okio/Sink;->write(Lcom/mbridge/msdk/thrid/okio/Buffer;J)V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 goto :goto_0 :catchall_0 move-exception v0 goto :goto_1 :cond_1 :goto_0 const/4 v0, 0x0 :goto_1 :try_start_1 iget-object v1, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->sink:Lcom/mbridge/msdk/thrid/okio/Sink; .line 248 invoke-interface {v1}, Lcom/mbridge/msdk/thrid/okio/Sink;->close()V :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_1 goto :goto_2 :catchall_1 move-exception v1 if-nez v0, :cond_2 move-object v0, v1 :cond_2 :goto_2 const/4 v1, 0x1 iput-boolean v1, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-eqz v0, :cond_3 .line 254 invoke-static {v0}, Lcom/mbridge/msdk/thrid/okio/Util;->sneakyRethrow(Ljava/lang/Throwable;)V :cond_3 return-void .end method .method public emit()Lcom/mbridge/msdk/thrid/okio/BufferedSink; .locals 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-nez v0, :cond_1 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 185 invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J move-result-wide v0 const-wide/16 v2, 0x0 cmp-long v2, v0, v2 if-lez v2, :cond_0 iget-object v2, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->sink:Lcom/mbridge/msdk/thrid/okio/Sink; iget-object v3, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 186 invoke-interface {v2, v3, v0, v1}, Lcom/mbridge/msdk/thrid/okio/Sink;->write(Lcom/mbridge/msdk/thrid/okio/Buffer;J)V :cond_0 return-object p0 .line 184 :cond_1 new-instance v0, Ljava/lang/IllegalStateException; const-string v1, "closed" invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw v0 .end method .method public emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink; .locals 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-nez v0, :cond_1 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 178 invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->completeSegmentByteCount()J move-result-wide v0 const-wide/16 v2, 0x0 cmp-long v2, v0, v2 if-lez v2, :cond_0 iget-object v2, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->sink:Lcom/mbridge/msdk/thrid/okio/Sink; iget-object v3, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 179 invoke-interface {v2, v3, v0, v1}, Lcom/mbridge/msdk/thrid/okio/Sink;->write(Lcom/mbridge/msdk/thrid/okio/Buffer;J)V :cond_0 return-object p0 .line 177 :cond_1 new-instance v0, Ljava/lang/IllegalStateException; const-string v1, "closed" invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw v0 .end method .method public flush()V .locals 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-nez v0, :cond_1 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 223 iget-wide v1, v0, Lcom/mbridge/msdk/thrid/okio/Buffer;->size:J const-wide/16 v3, 0x0 cmp-long v3, v1, v3 if-lez v3, :cond_0 iget-object v3, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->sink:Lcom/mbridge/msdk/thrid/okio/Sink; .line 224 invoke-interface {v3, v0, v1, v2}, Lcom/mbridge/msdk/thrid/okio/Sink;->write(Lcom/mbridge/msdk/thrid/okio/Buffer;J)V :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->sink:Lcom/mbridge/msdk/thrid/okio/Sink; .line 226 invoke-interface {v0}, Lcom/mbridge/msdk/thrid/okio/Sink;->flush()V return-void .line 222 :cond_1 new-instance v0, Ljava/lang/IllegalStateException; const-string v1, "closed" invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw v0 .end method .method public isOpen()Z .locals 1 iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 return v0 .end method .method public outputStream()Ljava/io/OutputStream; .locals 1 .line 191 new-instance v0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink$1; invoke-direct {v0, p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink$1;->(Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;)V return-object v0 .end method .method public timeout()Lcom/mbridge/msdk/thrid/okio/Timeout; .locals 1 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->sink:Lcom/mbridge/msdk/thrid/okio/Sink; .line 258 invoke-interface {v0}, Lcom/mbridge/msdk/thrid/okio/Sink;->timeout()Lcom/mbridge/msdk/thrid/okio/Timeout; move-result-object v0 return-object v0 .end method .method public toString()Ljava/lang/String; .locals 2 .line 262 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V const-string v1, "buffer(" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; iget-object v1, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->sink:Lcom/mbridge/msdk/thrid/okio/Sink; 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 write(Ljava/nio/ByteBuffer;)I .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-nez v0, :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 97 invoke-virtual {v0, p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->write(Ljava/nio/ByteBuffer;)I move-result p1 .line 98 invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink; return p1 .line 96 :cond_0 new-instance p1, Ljava/lang/IllegalStateException; const-string v0, "closed" invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p1 .end method .method public write(Lcom/mbridge/msdk/thrid/okio/ByteString;)Lcom/mbridge/msdk/thrid/okio/BufferedSink; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-nez v0, :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 47 invoke-virtual {v0, p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->write(Lcom/mbridge/msdk/thrid/okio/ByteString;)Lcom/mbridge/msdk/thrid/okio/Buffer; .line 48 invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink; move-result-object p1 return-object p1 .line 46 :cond_0 new-instance p1, Ljava/lang/IllegalStateException; const-string v0, "closed" invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p1 .end method .method public write(Lcom/mbridge/msdk/thrid/okio/Source;J)Lcom/mbridge/msdk/thrid/okio/BufferedSink; .locals 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation :goto_0 const-wide/16 v0, 0x0 cmp-long v0, p2, v0 if-lez v0, :cond_1 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 114 invoke-interface {p1, v0, p2, p3}, Lcom/mbridge/msdk/thrid/okio/Source;->read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J move-result-wide v0 const-wide/16 v2, -0x1 cmp-long v2, v0, v2 if-eqz v2, :cond_0 sub-long/2addr p2, v0 .line 117 invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink; goto :goto_0 .line 115 :cond_0 new-instance p1, Ljava/io/EOFException; invoke-direct {p1}, Ljava/io/EOFException;->()V throw p1 :cond_1 return-object p0 .end method .method public write([B)Lcom/mbridge/msdk/thrid/okio/BufferedSink; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-nez v0, :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 85 invoke-virtual {v0, p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->write([B)Lcom/mbridge/msdk/thrid/okio/Buffer; .line 86 invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink; move-result-object p1 return-object p1 .line 84 :cond_0 new-instance p1, Ljava/lang/IllegalStateException; const-string v0, "closed" invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p1 .end method .method public write([BII)Lcom/mbridge/msdk/thrid/okio/BufferedSink; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-nez v0, :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 91 invoke-virtual {v0, p1, p2, p3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->write([BII)Lcom/mbridge/msdk/thrid/okio/Buffer; .line 92 invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink; move-result-object p1 return-object p1 .line 90 :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 .method public write(Lcom/mbridge/msdk/thrid/okio/Buffer;J)V .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-nez v0, :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 41 invoke-virtual {v0, p1, p2, p3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->write(Lcom/mbridge/msdk/thrid/okio/Buffer;J)V .line 42 invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink; return-void .line 40 :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 .method public writeAll(Lcom/mbridge/msdk/thrid/okio/Source;)J .locals 6 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation if-eqz p1, :cond_1 const-wide/16 v0, 0x0 :goto_0 iget-object v2, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; const-wide/16 v3, 0x2000 .line 105 invoke-interface {p1, v2, v3, v4}, Lcom/mbridge/msdk/thrid/okio/Source;->read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J move-result-wide v2 const-wide/16 v4, -0x1 cmp-long v4, v2, v4 if-eqz v4, :cond_0 add-long/2addr v0, v2 .line 107 invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink; goto :goto_0 :cond_0 return-wide v0 .line 103 :cond_1 new-instance p1, Ljava/lang/IllegalArgumentException; const-string v0, "source == null" invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .end method .method public writeByte(I)Lcom/mbridge/msdk/thrid/okio/BufferedSink; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-nez v0, :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 124 invoke-virtual {v0, p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeByte(I)Lcom/mbridge/msdk/thrid/okio/Buffer; .line 125 invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink; move-result-object p1 return-object p1 .line 123 :cond_0 new-instance p1, Ljava/lang/IllegalStateException; const-string v0, "closed" invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p1 .end method .method public writeDecimalLong(J)Lcom/mbridge/msdk/thrid/okio/BufferedSink; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-nez v0, :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 166 invoke-virtual {v0, p1, p2}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeDecimalLong(J)Lcom/mbridge/msdk/thrid/okio/Buffer; .line 167 invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink; move-result-object p1 return-object p1 .line 165 :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 .method public writeHexadecimalUnsignedLong(J)Lcom/mbridge/msdk/thrid/okio/BufferedSink; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-nez v0, :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 172 invoke-virtual {v0, p1, p2}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeHexadecimalUnsignedLong(J)Lcom/mbridge/msdk/thrid/okio/Buffer; .line 173 invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink; move-result-object p1 return-object p1 .line 171 :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 .method public writeInt(I)Lcom/mbridge/msdk/thrid/okio/BufferedSink; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-nez v0, :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 142 invoke-virtual {v0, p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeInt(I)Lcom/mbridge/msdk/thrid/okio/Buffer; .line 143 invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink; move-result-object p1 return-object p1 .line 141 :cond_0 new-instance p1, Ljava/lang/IllegalStateException; const-string v0, "closed" invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p1 .end method .method public writeIntLe(I)Lcom/mbridge/msdk/thrid/okio/BufferedSink; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-nez v0, :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 148 invoke-virtual {v0, p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeIntLe(I)Lcom/mbridge/msdk/thrid/okio/Buffer; .line 149 invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink; move-result-object p1 return-object p1 .line 147 :cond_0 new-instance p1, Ljava/lang/IllegalStateException; const-string v0, "closed" invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p1 .end method .method public writeLong(J)Lcom/mbridge/msdk/thrid/okio/BufferedSink; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-nez v0, :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 154 invoke-virtual {v0, p1, p2}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeLong(J)Lcom/mbridge/msdk/thrid/okio/Buffer; .line 155 invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink; move-result-object p1 return-object p1 .line 153 :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 .method public writeLongLe(J)Lcom/mbridge/msdk/thrid/okio/BufferedSink; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-nez v0, :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 160 invoke-virtual {v0, p1, p2}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeLongLe(J)Lcom/mbridge/msdk/thrid/okio/Buffer; .line 161 invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink; move-result-object p1 return-object p1 .line 159 :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 .method public writeShort(I)Lcom/mbridge/msdk/thrid/okio/BufferedSink; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-nez v0, :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 130 invoke-virtual {v0, p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeShort(I)Lcom/mbridge/msdk/thrid/okio/Buffer; .line 131 invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink; move-result-object p1 return-object p1 .line 129 :cond_0 new-instance p1, Ljava/lang/IllegalStateException; const-string v0, "closed" invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p1 .end method .method public writeShortLe(I)Lcom/mbridge/msdk/thrid/okio/BufferedSink; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-nez v0, :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 136 invoke-virtual {v0, p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeShortLe(I)Lcom/mbridge/msdk/thrid/okio/Buffer; .line 137 invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink; move-result-object p1 return-object p1 .line 135 :cond_0 new-instance p1, Ljava/lang/IllegalStateException; const-string v0, "closed" invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p1 .end method .method public writeString(Ljava/lang/String;IILjava/nio/charset/Charset;)Lcom/mbridge/msdk/thrid/okio/BufferedSink; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-nez v0, :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 79 invoke-virtual {v0, p1, p2, p3, p4}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeString(Ljava/lang/String;IILjava/nio/charset/Charset;)Lcom/mbridge/msdk/thrid/okio/Buffer; .line 80 invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink; move-result-object p1 return-object p1 .line 78 :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 .method public writeString(Ljava/lang/String;Ljava/nio/charset/Charset;)Lcom/mbridge/msdk/thrid/okio/BufferedSink; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-nez v0, :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 72 invoke-virtual {v0, p1, p2}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeString(Ljava/lang/String;Ljava/nio/charset/Charset;)Lcom/mbridge/msdk/thrid/okio/Buffer; .line 73 invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink; move-result-object p1 return-object p1 .line 71 :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 .method public writeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/BufferedSink; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-nez v0, :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 53 invoke-virtual {v0, p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/Buffer; .line 54 invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink; move-result-object p1 return-object p1 .line 52 :cond_0 new-instance p1, Ljava/lang/IllegalStateException; const-string v0, "closed" invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p1 .end method .method public writeUtf8(Ljava/lang/String;II)Lcom/mbridge/msdk/thrid/okio/BufferedSink; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-nez v0, :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 60 invoke-virtual {v0, p1, p2, p3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeUtf8(Ljava/lang/String;II)Lcom/mbridge/msdk/thrid/okio/Buffer; .line 61 invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink; move-result-object p1 return-object p1 .line 59 :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 .method public writeUtf8CodePoint(I)Lcom/mbridge/msdk/thrid/okio/BufferedSink; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->closed:Z if-nez v0, :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer; .line 66 invoke-virtual {v0, p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeUtf8CodePoint(I)Lcom/mbridge/msdk/thrid/okio/Buffer; .line 67 invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/RealBufferedSink;->emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink; move-result-object p1 return-object p1 .line 65 :cond_0 new-instance p1, Ljava/lang/IllegalStateException; const-string v0, "closed" invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p1 .end method