ForwardingSource

abstract class ForwardingSource(delegate: Source) : Source

A Source which forwards calls to another. Useful for subclassing.

Constructors

ForwardingSource
Link copied to clipboard
fun ForwardingSource(delegate: Source)

Functions

close
Link copied to clipboard
open override fun close()
Closes this source and releases the resources held by this source.
read
Link copied to clipboard
open override fun read(sink: Buffer, byteCount: Long): Long
Removes at least 1, and up to byteCount bytes from this and appends them to sink.
timeout
Link copied to clipboard
open override fun timeout(): Timeout
Returns the timeout for this source.
toString
Link copied to clipboard
open override fun toString(): String

Properties

delegate
Link copied to clipboard
val delegate: Source
Source to which this instance is delegating.

Inheritors

HashingSource
Link copied to clipboard