Skip to content

//okio/okio/Sink

Sink

[js, native] interface Sink
[jvm] interface Sink : Closeable, Flushable

Functions

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


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


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


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


timeout [js, jvm, native]
Content
[js, jvm, native]
abstract 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(source: Buffer, byteCount: Long)


Inheritors

Name
BufferedSink
DeflaterSink
ForwardingSink
GzipSink

Extensions

Name Summary
deflate [jvm]
Brief description
Returns an DeflaterSink that DEFLATE-compresses data to this Sink while writing.
Content
inline fun Sink.deflate(deflater: Deflater): DeflaterSink


gzip [jvm]
Brief description
Returns a GzipSink that gzip-compresses to this Sink while writing.
Content
inline fun Sink.gzip(): GzipSink