Skip to content

//okio/okio/Source

Source

[js, native] interface Source
[jvm] interface Source : Closeable

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


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


read [js, jvm, native]
Content
[js, jvm, native]
abstract fun read(sink: Buffer, byteCount: Long): Long


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


Inheritors

Name
BufferedSource
ForwardingSource
GzipSource
InflaterSource

Extensions

Name Summary
gzip [jvm]
Brief description
Returns a GzipSource that gzip-decompresses this Source while reading.
Content
inline fun Source.gzip(): GzipSource


inflate [jvm]
Brief description
Returns an InflaterSource that DEFLATE-decompresses this Source while reading.
Content
inline fun Source.inflate(inflater: Inflater): InflaterSource