Skip to content

//okio/okio/BufferedSink

BufferedSink

[jvm] interface BufferedSink : Sink, WritableByteChannel

Functions

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


emit [jvm]
Content
abstract fun emit(): BufferedSink


emitCompleteSegments [jvm]
Content
abstract fun emitCompleteSegments(): BufferedSink


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


flush [jvm]
Content
abstract override fun flush()


hashCode [jvm]
Content
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 [jvm]
Content
abstract override fun timeout(): Timeout


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


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


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


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


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


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


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


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


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


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


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


writeShortLe [jvm]
Content
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 [jvm]
Content
abstract fun writeUtf8(string: String): BufferedSink
abstract fun writeUtf8(string: String, beginIndex: Int, endIndex: Int): BufferedSink


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


Properties

Name Summary
buffer [jvm] abstract val buffer: Buffer

Inheritors

Name
Buffer