Skip to content

//okio/okio/BufferedSource

BufferedSource

[jvm] interface BufferedSource : Source, ReadableByteChannel

Functions

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


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


exhausted [jvm]
Content
abstract fun exhausted(): Boolean


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


indexOf [jvm]
Content
abstract fun indexOf(b: Byte): Long
abstract fun indexOf(b: Byte, fromIndex: Long): Long
abstract fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long
abstract fun indexOf(bytes: ByteString): Long
abstract fun indexOf(bytes: ByteString, fromIndex: Long): Long


indexOfElement [jvm]
Content
abstract fun indexOfElement(targetBytes: ByteString): Long
abstract fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long


inputStream [jvm]
Brief description
Returns an input stream that reads from this source.
Content
abstract fun inputStream(): InputStream


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


peek [jvm]
Content
abstract fun peek(): BufferedSource


rangeEquals [jvm]
Content
abstract fun rangeEquals(offset: Long, bytes: ByteString): Boolean
abstract fun rangeEquals(offset: Long, bytes: ByteString, bytesOffset: Int, byteCount: Int): Boolean


read [jvm]
Content
abstract fun read(sink: ByteArray): Int
abstract fun read(sink: ByteArray, offset: Int, byteCount: Int): Int
abstract override fun read(sink: Buffer, byteCount: Long): Long
abstract override fun read(p0: ByteBuffer): Int


readAll [jvm]
Content
abstract fun readAll(sink: Sink): Long


readByte [jvm]
Content
abstract fun readByte(): Byte


readByteArray [jvm]
Content
abstract fun readByteArray(): ByteArray
abstract fun readByteArray(byteCount: Long): ByteArray


readByteString [jvm]
Content
abstract fun readByteString(): ByteString
abstract fun readByteString(byteCount: Long): ByteString


readDecimalLong [jvm]
Content
abstract fun readDecimalLong(): Long


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


readHexadecimalUnsignedLong [jvm]
Content
abstract fun readHexadecimalUnsignedLong(): Long


readInt [jvm]
Content
abstract fun readInt(): Int


readIntLe [jvm]
Content
abstract fun readIntLe(): Int


readLong [jvm]
Content
abstract fun readLong(): Long


readLongLe [jvm]
Content
abstract fun readLongLe(): Long


readShort [jvm]
Content
abstract fun readShort(): Short


readShortLe [jvm]
Content
abstract fun readShortLe(): Short


readString [jvm]
Brief description
Removes all bytes from this, decodes them as charset, and returns the string.
Content
abstract fun readString(charset: Charset): String


[jvm]
Brief description
Removes byteCount bytes from this, decodes them as charset, and returns the string.
Content
abstract fun readString(byteCount: Long, charset: Charset): String


readUtf8 [jvm]
Content
abstract fun readUtf8(): String
abstract fun readUtf8(byteCount: Long): String


readUtf8CodePoint [jvm]
Content
abstract fun readUtf8CodePoint(): Int


readUtf8Line [jvm]
Content
abstract fun readUtf8Line(): String?


readUtf8LineStrict [jvm]
Content
abstract fun readUtf8LineStrict(): String
abstract fun readUtf8LineStrict(limit: Long): String


request [jvm]
Content
abstract fun request(byteCount: Long): Boolean


require [jvm]
Content
abstract fun require(byteCount: Long)


select [jvm]
Content
abstract fun select(options: ): Int


skip [jvm]
Content
abstract fun skip(byteCount: Long)


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


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


Properties

Name Summary
buffer [jvm] abstract val buffer: Buffer

Inheritors

Name
Buffer