Skip to content

//okio/okio/BufferedSink

BufferedSink

[js, native] interface BufferedSink : Sink
[jvm] interface BufferedSink : Sink, WritableByteChannel

Functions

Name Summary
close [js, jvm, native]
Content
[js, jvm, native]
abstract override fun close()


emit [js, jvm, native]
Content
[js, jvm, native]
abstract fun emit(): BufferedSink


emitCompleteSegments [js, jvm, native]
Content
[js, jvm, native]
abstract fun emitCompleteSegments(): BufferedSink


equals [js, jvm, native]
Content
[js, jvm, native]
open operator override fun equals(other: Any?): Boolean


flush [js, native, jvm]
Content
[js, native]
abstract override fun flush()
[jvm]
abstract override fun flush()


hashCode [js, jvm, native]
Content
[js, jvm, native]
open override fun hashCode(): Int


isOpen [jvm]
Content
abstract override fun isOpen(): Boolean


outputStream [jvm]
Brief description
Returns an output stream that writes to this sink.
Content
abstract fun outputStream(): OutputStream


timeout [js, jvm, native]
Content
[js, jvm, native]
abstract override fun timeout(): Timeout


toString [js, jvm, native]
Content
[js, jvm, native]
open override fun toString(): String


write [js, jvm, native]
Content
[js, jvm, native]
abstract fun write(byteString: ByteString): BufferedSink
[js, jvm, native]
abstract fun write(byteString: ByteString, offset: Int, byteCount: Int): BufferedSink
[js, jvm, native]
abstract fun write(source: ByteArray): BufferedSink
[js, jvm, native]
abstract fun write(source: ByteArray, offset: Int, byteCount: Int): BufferedSink
[js, jvm, native]
abstract fun write(source: Source, byteCount: Long): BufferedSink
[js, jvm, native]
abstract override fun write(source: Buffer, byteCount: Long)
[jvm]
abstract override fun write(p0: ByteBuffer): Int


writeAll [js, jvm, native]
Content
[js, jvm, native]
abstract fun writeAll(source: Source): Long


writeByte [js, jvm, native]
Content
[js, jvm, native]
abstract fun writeByte(b: Int): BufferedSink


writeDecimalLong [js, jvm, native]
Content
[js, jvm, native]
abstract fun writeDecimalLong(v: Long): BufferedSink


writeHexadecimalUnsignedLong [js, jvm, native]
Content
[js, jvm, native]
abstract fun writeHexadecimalUnsignedLong(v: Long): BufferedSink


writeInt [js, jvm, native]
Content
[js, jvm, native]
abstract fun writeInt(i: Int): BufferedSink


writeIntLe [js, jvm, native]
Content
[js, jvm, native]
abstract fun writeIntLe(i: Int): BufferedSink


writeLong [js, jvm, native]
Content
[js, jvm, native]
abstract fun writeLong(v: Long): BufferedSink


writeLongLe [js, jvm, native]
Content
[js, jvm, native]
abstract fun writeLongLe(v: Long): BufferedSink


writeShort [js, jvm, native]
Content
[js, jvm, native]
abstract fun writeShort(s: Int): BufferedSink


writeShortLe [js, jvm, native]
Content
[js, jvm, native]
abstract fun writeShortLe(s: Int): BufferedSink


writeString [jvm]
Content
abstract fun writeString(string: String, charset: Charset): BufferedSink
abstract fun writeString(string: String, beginIndex: Int, endIndex: Int, charset: Charset): BufferedSink


writeUtf8 [js, jvm, native]
Content
[js, jvm, native]
abstract fun writeUtf8(string: String): BufferedSink
[js, jvm, native]
abstract fun writeUtf8(string: String, beginIndex: Int, endIndex: Int): BufferedSink


writeUtf8CodePoint [js, jvm, native]
Content
[js, jvm, native]
abstract fun writeUtf8CodePoint(codePoint: Int): BufferedSink


Properties

Name Summary
buffer [js, jvm, native] abstract val buffer: Buffer

Inheritors

Name
Buffer