Skip to content

//okio/okio/Source

Source

[jvm] interface Source : Closeable

Functions

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


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


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


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


timeout [jvm]
Content
abstract fun timeout(): Timeout


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


Inheritors

Name
BufferedSource
CipherSource
ForwardingSource
GzipSource
HashingSource
InflaterSource

Extensions

Name Summary
cipherSource [jvm]
Brief description
Returns a source that uses cipher to encrypt or decrypt this.
Content
fun Source.cipherSource(cipher: Cipher): CipherSource


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


hashingSource [jvm]
Brief description
Returns a source that uses mac to hash this.
Content
fun Source.hashingSource(mac: Mac): HashingSource


[jvm]
Brief description
Returns a source that uses digest to hash this.
Content
fun Source.hashingSource(digest: MessageDigest): HashingSource


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